Heirarchy grid autopopulated and expanded

3 posts, 0 answers
  1. Marc
    Marc avatar
    128 posts
    Member since:
    Jul 2010

    Posted 08 Aug 2017 Link to this post

    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. Marc
    Marc avatar
    128 posts
    Member since:
    Jul 2010

    Posted 08 Aug 2017 Link to this post

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

  3. Stefan
    Admin
    Stefan avatar
    3076 posts

    Posted 10 Aug 2017 Link to this post

    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.
Back to Top