Completed
Last Updated: 01 Jul 2021 11:13 by ADMIN
Csa
Created on: 05 Jun 2014 02:13
Category: UI for ASP.NET MVC
Type: Feature Request
2
To auto save child grid when saving parent grid when creating new data
Currently Jun 2014, when saving new data on hierarchy (parent/child) grid, there is no possible way to save the header data, get the pk of the header and pass the pk to child data and save the child data. 

I suggest to add a feature to auto save both parent and child data when user click save button when creating new data.
Basically do ajax save for the parent, on success pass header's pk to do ajax save for child.
1 comment
ADMIN
Viktor Tachev
Posted on: 01 Jul 2021 11:13

Hello,

 

If you have a self-referencing hierarchy data I would suggest using the TreeList component instead of Grid. 

https://demos.telerik.com/aspnet-mvc/treelist

That said, if you would like to save all hierarchy levels in a Grid with a single button you can utilize the approach demonstrated in the Knowledge Base article below. It is using the jQuery widget, however the relevant SaveAll JavaScript method is applicable also for the MVC wrappers.

https://docs.telerik.com/kendo-ui/knowledge-base/grid-save-all-grids


Regards,
Viktor Tachev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.