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

Heirarchy grid autopopulated and expanded

2 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 08 Aug 2017, 05:51 PM
Is there an example of a hiearchy grid where the main grid is not autobound. But once it is databound all the child templates are autobound and expanded?

2 Answers, 1 is accepted

Sort by
0
Marc
Top achievements
Rank 1
answered on 08 Aug 2017, 08:28 PM

It looks like I can set the datasource on the detail init event and then expand all the rows on the main grids databound event. But performance is terrible...

0
Stefan
Telerik team
answered on 10 Aug 2017, 07:58 AM
Hello Marc,

I made an example where the Grid is initially not bound and it is binding on buttons click and it is expanding all child Grids.

The example is working as expected on my end:

http://dojo.telerik.com/AqabE

I can assume that in the real scenario the pageSize for the parent Grid is either not set or set to a larger number. Please have in mind that we recommend setting smaller page sizes for the parent Grid. This is required as otherwise, it will create a scenario where 15 or 20+ Grid has to be initialized at the same time and this is very resource consuming operation as it will create thousands of DOM elements, and then the performance will mainly depend on the browser and the machine:

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-pageSize

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Marc
Top achievements
Rank 1
Answers by
Marc
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or