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

TreeView - expand all node subitems structure on demand

1 Answer 119 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Elko
Top achievements
Rank 1
Elko asked on 16 Oct 2014, 12:56 PM
Hello,

we are using treeview, loading nodes on demand having checkboxes (.Checkboxes(cb => cb.CheckChildren(true)).  The tree has 500-1000 nodes.

One requirement is,  if a user changes a checkbox, the checkbox state must be set to all the children of this node.

My questions are

- has TreeView such functionality built in ?
- Is it possible to expand all sub nodes (complete structure) of  a given node when loaded on demand ?


Many thanks in advance.

Regards
Thomas

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 17 Oct 2014, 07:51 AM
Hello Thomas,

> if a user changes a checkbox, the checkbox state must be set to all the children of this node. 
This is what the CheckChildren functionality does. Note that checked state of items that are not loaded is not set, because the items are not available on the client side.

> Is it possible to expand all sub nodes (complete structure) of  a given node when loaded on demand? 
Yes, and this will solve the problem with the not-yet-loaded items above. See the linked Dojo snippet on how to load all subnodes on item check.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
Elko
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or