export class SparkGrid extends SampleBase {
-----
renderSparkline() {
setTimeout(() => {
for (let i = 1; i < 21; i++) {
let linearProgress1 = new ProgressBarComponent({
type: "Linear",
height: "60",
value: 100,
animation: {
enable: true,
duration: 2000,
delay: 0
}
});
linearProgress1.appendTo("#spkline" + i);
}
}, 500);
}
render() {
return (
<div className="control-pane">
<div className="control-section">
<GridComponent
dataSource={orderdata}
dataBound={this.renderSparkline.bind(this)}
>
<ColumnsDirective>
<ColumnDirective
headerText="Tax per annum"
template={props => {
return <div id={"spkline" + props.EmployeeID} />;
}}
textAlign="Center"
width="100"
/>
</ColumnsDirective>
</GridComponent>
</div>
</div>
);
}
}
|
Hi Elias,Thanks for your patience.We have created a sample based on your requirement is ‘Grid with Progress-bar’ by using dataBound event of Grid. Please find the sample for your reference.
Regards,J Mohammed Farook
Hi Mehvish,Thanks for contacting Syncfusion support.Based on the provided information we could understand that you are facing problem with the sample shared in the previous update. We tried to reproduce the same from our end unfortunately could not as the Chart components were rendered properly on resizing the screen. Please find the below video demo based on this for your reference,Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/grid_chart_resize-1051947686.zipSo please share us the below details to validate further on this,
- Let us know the replication procedure for reproducing the problem.
- Video demo of the problem.
- Share your browser and machine specification details where the problem is reproduced.
Regards,Rajapandiyan S