Is it possible to initialize a grid from an table with hierarchy inside?
thanks
1 Answer, 1 is accepted
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.