Currently I am using Kendo Grid in MVC 4 razor, with Batch InCell mode.
Let say my grid got 10 records, I added 2 records, updated 3records, and deleted 1 record.
If I am using kendo default command save changes function, it will trigger controller for 3 times (create function(2 records), update
function(3 records), destroy function(1 record))
Currently our problem is that we don’t know how to handle
SQL Transaction if it is triggered differently.
Can it be triggered once with all the changes records / or all records (including deleted record)?
Or can I create a button out of the grid with function to post the grid datasource to controller (this datasource should include deleted record with flag “delete”, updated record with flag “updated”)?
Or is there any other method that I can achieve this?
Thanks
Let say my grid got 10 records, I added 2 records, updated 3records, and deleted 1 record.
If I am using kendo default command save changes function, it will trigger controller for 3 times (create function(2 records), update
function(3 records), destroy function(1 record))
Currently our problem is that we don’t know how to handle
SQL Transaction if it is triggered differently.
Can it be triggered once with all the changes records / or all records (including deleted record)?
Or can I create a button out of the grid with function to post the grid datasource to controller (this datasource should include deleted record with flag “delete”, updated record with flag “updated”)?
Or is there any other method that I can achieve this?
Thanks