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

adding hierarchy with initialization from HTML table

1 Answer 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 01 Apr 2019, 09:46 AM

Is it possible to initialize a grid from an table with hierarchy inside?

 

thanks

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 03 Apr 2019, 09:36 AM
Hello Christophe,

Generally speaking, the grid renders an additional row for each detail template. The child grids are basically standard grids which are within that additional row. Initializing a hierarchical grid from a table might be possible if you iterate through all the child grids and initialize them. However, you should have in mind that his has its limitations. For example, the grid will not be aware that those are detail templates and it will not render the expand/collapse buttons. Therefore the functionality for expanding and collapsing the child rows will not work out of the box.

I would recommend you to extract the data and initialize the grid from a div as everything will work out of the box. Is initializing the grid from a div not possible in your case?


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