This is a migrated thread and some comments may be shown as answers.

Grid ASP.Net AJAX Batch Editing DB Updates Error Handling

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 13 Jun 2018, 09:29 AM

Hi,

I'm new to telerik and have this case that I've been trying to find a way to resolve. In the Grid component, I'm using Batch Editing and I'm performing the saving of edited data on the grid using the Server-Side BatchEditCommand Event. Assuming I have 3 records, could be to insert, update or delete, and for whatever the reason, the database updates failed (for e.g. DB Locked at the time the save changes was done). My question is, how do I tell the grid to remain in Edit Mode on the client-side and not to do a rebinding/refresh of data (as the unsaved data is lost currently) as we want to allow user to retry the save changes again?

 

Thanks in advance..

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 18 Jun 2018, 06:24 AM
Hello Ian,

I'm afraid this is not supported with Batch editing because once the postback action happens, all batch changed on the client will be lost, regardless whether the database was actually updated or not. You can check InPlace editing instead which resembles Batch editing and you can use to achieve this scenario:
https://demos.telerik.com/aspnet-ajax/dropdowntree/examples/applicationscenarios/dropdowntreeingrid/defaultcs.aspx?product=grid
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/edit-mode/in-place

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Ian
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or