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?
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.
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: