New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Expand Parent Nodes
To expand the parent Nodes of a certain Node, you could use the following approach:
JavaScript
function pageLoad()
{
var tree = $find("<%= RadTreeView1.ClientID %>");
var node = tree.findNodeByText("The Text Of The Needed Node");
// or
//var node = tree.findNodeByValue("The Value Of The Needed Node");
node = node.get_parent();
while(node != null)
{
if (node.expand)
{
node.expand();
}
node = node.get_parent();
}
}