Hi ajit,
Greetings from syncfusion support.
Query : What event is fired when the update button is clicked? In the event can I get a list of all the items that were added, updated and deleted?
While having batch edit mode in grid, calling endEdit method or clicking update button in the toolbar triggers two events in the grid beforeBatchSave and actionComplete with request type as batchsave.
beforeBatchSave event gets triggered before the save action occurred in the grid. In that event you can get all the currently added, deleted and edited records in the grid as arguments.
Then the actionComplete event gets triggered after the edited records updated in the grid.
Please refer the below code example and sample for more information.
methods: {
beforeBatchSave: function(args) {
console.log(args);
// get currently batch added, deleted and edited records in the grid
console.log(args.batchChanges); },
actionComplete: function(args) {
if (args.requestType === "batchsave") {
console.log(args);
}
}
}
|
Query : My grid is bound to a array, in this case, how can I show each array element in the grid column?
we are unable to understand your requirement. So please share the below details to validate further on this.
- Explain your requirement in detail
- Did you have complex array of data in the grid dataSource and you want to bind it as column model in grid or not?
Regards,
Rajapandiyan S