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

RAD Grid Batch Edit - Preserve values on post back

2 Answers 167 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sambathraj
Top achievements
Rank 1
Sambathraj asked on 28 Dec 2014, 08:40 PM
Hi,
I have a Rad grid with a Detail Grid. Both the parent and child grid are in BatchEdit mode. I do the validation at server side and display the error messages through RadWindow.

When a error is displayed, the grid loses the entries and reverts to its original state. How do I keep the values during the Ajax post backs? I tried setting the event.Cancelled = true on BatchEditCommand event handler. It doesn't help.

Any example will be useful.

Thanks,
Sambath

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 29 Dec 2014, 08:51 AM
Hello Sambath,

Batch editing is a client-side oriented mode and the changes made by the user will be lost on postback. This behavior could not be changed and if you need any custom validation you should perform it on client-side or implement custom logic for persisting the changes on postback and apply it back to the grid, once the request ends, but it will be almost impossible to handle all scenarios, so highly recommend that you use other edit mode if the server validation is mandatory.


Best Regards,
Konstantin Dikov
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.

 
0
Sambathraj
Top achievements
Rank 1
answered on 30 Dec 2014, 05:50 PM
Thanks for the reply. I will look for other edit mode to use the server side validation.
Tags
Grid
Asked by
Sambathraj
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Sambathraj
Top achievements
Rank 1
Share this question
or