Grid ASP.Net AJAX Batch Editing DB Updates Error Handling

2 posts, 0 answers
  1. Ian
    Ian avatar
    1 posts
    Member since:
    May 2018

    Posted 13 Jun 2018 Link to this post


    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..

  2. Eyup
    Eyup avatar
    4045 posts

    Posted 18 Jun 2018 Link to this post

    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:

    I hope this will prove helpful.

    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.
Back to Top