I am using the Telerik RadTreeView with ASP .Net C#. I am able to set the Selected Node using the following code:
var node = radTreeViewMenuStructure.Nodes.FindNodeByValue(linkID.ToString());
if (node != null) // <- equals null when not on the root of the tree
{
node.Selected = true;
node.Expanded = true;
node.ExpandParentNodes();
node.Focus();
}
The above code sets the selected node only if the node is just off the root and not enclosed in a parent node. My node = null when choosing an ID of a node that is enclosed within a parent node. Any suggestions?