Doubleclick for expanding all children

2 posts, 0 answers
  1. Michael
    Michael avatar
    13 posts
    Member since:
    May 2015

    Posted 01 Sep 2015 Link to this post


    I am using the TreeList to load a tree from a JSON Service. I have the requirement that on double clicking a node not only one level should be expanded but all remaining levels. Is there any way to do this?
    One part that I find tricky is to find out which rows belong to a certain parent row. Another thing is that the expand method of the TreeGrid does not return a Promise which makes it difficult to know when a level has been loaded.

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2275 posts

    Posted 03 Sep 2015 Link to this post

    Hello Michael,


    You can use expand method to expand a row and recursively expand all its children. There isn't built-in API for this.


    You can check whether a level is loaded by inspecting the loaded state of the TreeListModel.


    Nikolay Rusev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top