...
this.batchgrid.editModule.updateCell(0, "CustomerID", "test")
... |
...
bound(args){
console.log("changes", this.changes || "No changes");
console.log("currentViewData", this.batchgrid.currentViewData);
}
public ngAfterViewInit(): void {
console.log("batchgrid", this.batchgrid)
setTimeout(i => {
this.batchgrid.editModule.updateCell(0, "CustomerID", "test")
this.changes = this.batchgrid.editModule.getBatchChanges();
}, 1000)
... |
...
setTimeout(i => {
var viewData = []; //a variable to store the currentView data with updated cells value
this.grid.editModule.updateCell(0, "CustomerID", "test");
for(let i=0; i<this.grid.getRowsObject().length; i++){
if(this.grid.getRowsObject()[i].changes){
viewData.push(this.grid.getRowsObject()[i].changes); //changed cells value are pushed into the currentView data if any
}
else{
viewData.push(this.grid.getRowsObject()[i].data); //non-changed cells value are pushed into the currentView data
}
}
console.log(this.grid.editModule.getBatchChanges());
console.log(viewData);
}, 3000)
... |