jqxGrid.setcellvalue update value in jqxGrid but before rendering ZoneTask reset grid as before it.
Can anyone please update me with this?
Following is snippet for my code till now.
Calling Getdata method for bind report
buttonClicked() {
this.getData();
// update cells after bind grid.
this.updatebounddata(this.firstLoadData);
}
`getData() {
this.jqxLoader.open();
this.reportSrv.getReportData(this.Id, moment(this.dateFrom, environment.dateFormat).toDate(), this.PeriodRange, this.aggregationColumns)
.then(x => {
const data = this.expandPeriodData(x);
this.source.localdata = data;
this.firstLoadData = data;
this.jqxLoader.close();
})
.catch(x => {
this.jqxLoader.close();
alert(‘An error has occurred’);
});
}`
update cell after bind grid
updatebounddata(data) {
if (data.length > 0) {
for (let i = 0; i < data.length; i++) {
this.jqxGrid.setcellvalue(i, 'Period1OH', 5.0)
this.jqxGrid.setcellvalue(i, 'Period2OH', 5.0)
this.jqxGrid.setcellvalue(i, 'Period3OH', 5.0)
this.jqxGrid.setcellvalue(i, 'Period4OH', 5.0)
}
}
}