Master/Detail Grid combined with batch editing

Thread is closed for posting
2 posts, 0 answers
  1. Wessel
    Wessel avatar
    1 posts
    Member since:
    May 2014

    Posted 14 May 2014 Link to this post

    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,
  2. Viktor Tachev
    Viktor Tachev avatar
    1786 posts

    Posted 16 May 2014 Link to this post

    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.

    Viktor Tachev

    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.

Back to Top