Doubleclick for expanding all children

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

    Posted 01 Sep 2015 Link to this post

    Hi

    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.

    Thanks
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 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.

     

    Regards,
    Nikolay Rusev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top