Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142162 | Jan 22,2019 02:42 PM UTC | Jan 25,2019 08:33 AM UTC | Angular - EJ 2 | 5 |
![]() |
Tags: Grid |
...
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)
... |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.