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

Aitoincremement Id for new rows with child grid

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Egoitz
Top achievements
Rank 1
Egoitz asked on 15 Nov 2019, 11:15 AM

Hello,

I am trying to create a row with a nested grid template. In order to post for creation of new record in database I need to relate the child grid with the parent grid. If I add more rows I need this Id to increment, so parent and child grid will have the same Id.

How can I manage this? am I doing it the correct way? May you please provide me with an example?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 18 Nov 2019, 08:13 AM

Hello Egoitz,

 

This is the default Hierarchy demo:
https://demos.telerik.com/aspnet-core/grid/hierarchy

For implementing Editing and CRUD operations with Hierarchy, you can make avail of these examples:
https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/grid-ajax-hierarchy-editing-using-custom-popup-temlpate
https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/grid-ajax-hierarchy-editing-with-checkboxes
https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/grid-ajax-hierarchy-incell-edititng

I hope this will prove helpful.

 

Regards,
Eyup
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Egoitz
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or