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

Updating parent and child records with a single save button

3 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Annie
Top achievements
Rank 1
Annie asked on 31 Aug 2014, 07:17 AM
Hi,

In a Telerik kendo hierarchical grid for asp.net mvc is it possible to update both parent and child tables with a single save button on the parent grid

Thanks,
Annie

3 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 03 Sep 2014, 06:50 AM
Hi Annie,

Saving both parent and child Grids using a single request is not supported out of the box. A similar behavior could be achieved by subscribing to the parent Grid's DataSource requestEnd event. Once the event is triggered you can check if the type of the request is "create" or "update", get the instances of all child Grids, iterate over their data items, set  a value for the ID field using the one got from the response and finally sync the child Grid's dataSources.

Regards,
Alexander Popov
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
Annie
Top achievements
Rank 1
answered on 03 Sep 2014, 05:08 PM
Thanks for your reply. Is it possible to give example code, I am very new to Telerik Kendo UI
0
Alexander Popov
Telerik team
answered on 04 Sep 2014, 12:57 PM
Hello Annie,

I am afraid that we do not have an example meeting your criteria and implementing the described functionality would require a custom solution that is beyond the scope of our support services.

Regards,
Alexander Popov
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
Annie
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Annie
Top achievements
Rank 1
Share this question
or