Hi Neo,
Thanks for contacting Syncfusion support.
We have analyzed your requirement and we suggest you to use the below way to achieve your requirement. In the below sample, we have bind the batchCancel and batchDelete event to get the deleted records details.
Please refer the below code example and sample for more information.
<ejs-grid #batchgrid id='Batchgrid' [dataSource]='data' (beforeBatchSave)='beforeBatchSave($event)' (batchDelete)='beforeBatchDelete($event)' (batchCancel)='batchCancel($event)' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar'>
<e-columns>
. . . . . . . . .
</e-columns>
</ejs-grid>
|
beforeBatchDelete(args){
// you can get the total deleted record count here
console.log(this.grid.editModule.editModule.getBatchChanges().deletedRecords.length)
}
batchCancel(args){
// reset the value here
console.log('cancel')
}
|
Regards,
Hariharan