RadTreeView for ASP.NET

Expanding parent nodes Send comments on this topic.
Example scenarios (How to) > Client -side > Expanding parent nodes

Glossary Item Box

To expand the parent nodes of a certain TreeNode, you should use the following approach:

Example

JavaScript code Copy Code
<script language="javascript" type="text/javascript">        
   
function ExpandParents()
   {
       
var tree = <%=RadTreeView1.ClientID %>;
       var node
= tree.FindNodeByText("The Text Of The Needed Node");            
       
while(node.Parent != null)
       {
           
node.Parent.Expand();
           node
= node.Parent;
       }
   }
</script>