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

Master-Detail Grids Editable

1 Answer 651 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bhavin
Top achievements
Rank 1
bhavin asked on 15 Oct 2018, 02:52 PM

Hi, 

 Is there any example of Master-Detail Grids which would have the ability to add master and it's corresponding detail rows? 

Also, the data should be local not from a base_url.

(ref: https://www.telerik.com/kendo-angular-ui/components/grid/advanced-features/hierarchy/) 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 17 Oct 2018, 07:18 AM
Hello Bhavin,

There is no such example available, but the mechanics for both the master-detail and editing functionalities will be the same as in the documentation demos.

The Master Grid can be edited following any of the approaches, outlined in the respective documentation articles:

https://www.telerik.com/kendo-angular-ui/components/grid/editing/editing-reactive-forms/

https://www.telerik.com/kendo-angular-ui/components/grid/editing/

While the detail Grid should be defined in the detail row template:

https://www.telerik.com/kendo-angular-ui/components/grid/advanced-features/detail-template/

The data for the detail grid should come from a property of the master grid data item for the respective row that in turn holds an array of data for the detail grid.

Here is a simplified example that demonstrates this:

https://stackblitz.com/edit/angular-wkcaw3?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
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
General Discussions
Asked by
bhavin
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or