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

Browse through RadTreeView nodes

1 Answer 41 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 16 Dec 2011, 04:21 PM
Hi all,

can someone tell me what it is the best way to browse all nodes of a RadTreeView?

I'm using the following code:

foreach (RadTreeNode oNode in oTreeView.Nodes)
{
    Label oLbl = (Label)oNode.FindControl("spnDesignation");
    oLbl.Visible = bShow;
}

but it is just catching the root node.

Thanks,
Bruno

1 Answer, 1 is accepted

Sort by
0
Bruno
Top achievements
Rank 1
answered on 16 Dec 2011, 04:27 PM
Got it... I have to use oTreeView.GetAllNodes().
Tags
TreeView
Asked by
Bruno
Top achievements
Rank 1
Answers by
Bruno
Top achievements
Rank 1
Share this question
or