New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Traversing Nodes
To traverse Nodes, iterate the Nodes collection of the TreeView or Nodes collection of a Node. Each member of the collection will be of RadTreeNode type that will allow access to Text, Value and other properties. Use the GetAllNodes() method to return Nodes from the entire Tree at one time.
C#
foreach (RadTreeNode node in RadTreeView1.Nodes)
{
tbResults.Text += node.Text + System.Environment.NewLine;
}
foreach (RadTreeNode node in RadTreeView1.GetAllNodes())
{
tbResults.Text += node.Text + System.Environment.NewLine;
}