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

Expand ALL child (and children of children) nodes with Load On Demand

3 Answers 157 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Brian Berman
Top achievements
Rank 1
Brian Berman asked on 18 Mar 2010, 03:26 PM
I am looking for a way to load ALL children for a given node (including children of children) while using Load on Demand.  I want to expand ALL from a given root node.  My goal is to trigger expanding all when a user checks a nodes checkbox.

The client-side solution in this link would work IF the nodes were just all automatically expanded prior to setting their checkbox state: http://www.telerik.com/help/aspnet-ajax/checkboxes-inherit-checked-state-of-parent-node-when-loading-nodes-on-demand.html

3 Answers, 1 is accepted

Sort by
0
Joe Kalinowski
Top achievements
Rank 1
answered on 05 Oct 2010, 07:05 PM
I am also looking for a solution to this issue. Using load on demand, when a checkbox is checked, I want to expand all of the nodes under it recursively and have their checkboxes checked. What is the most efficient way to do this?
0
John
Top achievements
Rank 1
answered on 08 Oct 2010, 04:42 PM
Anyone have any idea how to do this?  assuming it can even be done?
0
Nikolay Tsenkov
Telerik team
answered on 11 Oct 2010, 10:08 AM
Hi John,

Could you, please, explain in a bit more detail what exactly is the scenario you try to implement?
The page that is initially posted as an example of recursive expand isn't meant to be one.

If I understood the problem correctly, the best solution, would be to expand more than one node on NodeExpand event on the server (as many nodes as needed), considering the state of the node that the event was initially thrown for.

Hope this is helpful for you. Of course if this is not what you are looking for, please further explain what seems to be the problem.


Regards,
Nikolay Tsenkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Brian Berman
Top achievements
Rank 1
Answers by
Joe Kalinowski
Top achievements
Rank 1
John
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or