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

Doubleclick for expanding all children

1 Answer 47 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 01 Sep 2015, 01:27 PM
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

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 03 Sep 2015, 10:43 AM

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!
 
Tags
TreeList
Asked by
Michael
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or