4 Answers, 1 is accepted
0
Hello Matt,
Thank you for writing.
You can use the Expand function and provide as an argument the desired tree node collection which you want to be expanded. For the inner levels you will have to loop through the nodes.
I hope this helps.
Best wishes,
Stefan
the Telerik team
Thank you for writing.
You can use the Expand function and provide as an argument the desired tree node collection which you want to be expanded. For the inner levels you will have to loop through the nodes.
I hope this helps.
Best wishes,
Stefan
the Telerik team
0

Ian
Top achievements
Rank 1
answered on 30 Mar 2011, 08:16 PM
Hi Matt
I recently needed to achieve node expansion in a way which allowed me to restrct the level in the tree to which expansion would occur. This code works quite nicely:
Regards
Ian Carson
I recently needed to achieve node expansion in a way which allowed me to restrct the level in the tree to which expansion would occur. This code works quite nicely:
private
void
TreeNodeRecursiveExpansion(RadTreeNodeCollection nodes,
int
level)
{
foreach
(RadTreeNode myNode
in
nodes)
{
if
(myNode.Level != level)
{
myNode.Expand();
TreeNodeRecursiveExpansion(myNode.Nodes, level);
}
}
}
Regards
Ian Carson
0
Hello Ian,
Thank you for sharing your code with the community.
Best wishes,
Stefan
the Telerik team
Thank you for sharing your code with the community.
Best wishes,
Stefan
the Telerik team
0

Ian
Top achievements
Rank 1
answered on 05 Apr 2011, 05:36 AM
Hi Stefan
That's my pleasure. You guys are very helpful so just trying to give back a little as well.
Regards
Ian
That's my pleasure. You guys are very helpful so just trying to give back a little as well.
Regards
Ian