In cases where you have a treeview with many nodes and limited space on the form, you need to scroll the control in order to find a specific node. RadTreeView control handles this automatically for you. To scroll the control to a node use the BringIntoView() method of RadTreeView:
Copy[C#]
RadTreeNode lastRootNode = radTreeView1.Nodes[radTreeView1.Nodes.Count - 1];
radTreeView1.BringIntoView(lastRootNode.Nodes[lastRootNode.Nodes.Count - 1]);
Copy[VB.NET]
Dim lastRootNode As RadTreeNode = RadTreeView1.Nodes(RadTreeView1.Nodes.Count - 1)
RadTreeView1.BringIntoView(lastRootNode.Nodes(lastRootNode.Nodes.Count - 1))
Note |
|---|
Note that the BringIntoView() method does not select the node! |