Hi,
When I trying to delete row in grid using build-in toolbar, the deletion display is correct. However, when I try get the datasource in jQuery, it seems remove wrong row in datasource.
For example, the product grid shows 2 products. If I delete 1st item, the display and datasource are sync. correctly. But if I delete 2nd item. The display is correct, but datasource is showing 1st itme data.
Here is how I get the datasource object in jQuery
var products = $("#InvoiceProducts").ejGrid("option", "dataSource");
I am using this is because I have save button for entire form. The controller will get all updated data and determine which row need to insert/update or delete.
Does additional call to make grid sync with datasource after deletion?
Attached is the screenshot document to explain more clearly.
Thanks.
Attachment:
Syncfusion_Grid_Deletion_f49c6ded.zip