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

Grid + EditMode Batch + SaveChanges()

1 Answer 266 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Italo
Top achievements
Rank 1
Italo asked on 22 May 2014, 08:21 PM
I have a RadGrid in batch model (EditMode = "Batch") in <CommandItemTemplate> have a button (SAVE) that calls a javascript function that will call the get_batchEditingManager () method saveChanges (mastertableview);., and server side I I'm Telerik.Web.UI.GridBatchEditingEventArgs function well, the code is working correctly, however, if the server side function of an error, the postback happens and I lose the information that was added on the client. 
How do I not lose this information on the client side if my GridBatchEditingEventArgs server side of an error?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 27 May 2014, 10:44 AM
Hi Italo,

Please note that you will need to cancel the command on the client. You can implement the approach demonstrated in the following sample to prevent paging, sorting, filtering, etc. when there are unsaved changes:
http://www.telerik.com/support/code-library/prevent-losing-batch-editing-changes-on-paging-or-any-other-postback

It will be much more straightforward to achieve this functionality when the new OnUserAction client-side event handler is introduced in the upcoming releases.

Hope this helps.


Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Italo
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or