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

Master/Detail Grid combined with batch editing

1 Answer 151 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Wessel
Top achievements
Rank 1
Wessel asked on 14 May 2014, 10:03 AM
I have two Master/Detail RadGrids.
In the Master grid I would like to enable batch editing.

In order to get the Detail grid to update when I click a row in the Master grid, I need to have the EnablePostBackOnRowClick equals true.

But I can only get batch editing working it the EnablePostBackOnRowClick is false.

Am I missing something, or is it not possible to get Master/Detail and batch editing to work together?

Best regards,
Wessel

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 16 May 2014, 01:24 PM
Hello Wessel,

Please note that when using Batch editing mode for RadGrid all changes are performed on the client and are submitted to the data source with a single request after the user clicks on the Save Changes button. In case postback is performed before the modifications are submitted, they would be lost. In the scenario you describe such postback is performed after every row click. Because of this changes are not applied.

If you would like to save the changes when a row in the MasterTable is clicked you could disable the EnablePostBackOnRowClick property and handle the client-side RowClick event. In the handler you could call the saveChanges() method for the modified DetailTable.

If you need more information on the client-side GridBatchEditing API it is available in this article.


Regards,
Viktor Tachev
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
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Wessel
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or