root node should not be expanded at page load  
Author Message
Musafir





PostPosted: Visual C# IDE, root node should not be expanded at page load Top

Hi..

I have created a treeview in asp.net using c#. But the problem is all the nodes are expanded when the page loads.

In Treeview control, when the page loads, the tree should not be expanded. Only when the user clicks on the root node the child nodes should be seen. There are subchild nodes for the child nodes and they should be expanded only when the user clicks on the child node. How to implement this in asp.net using c#.

Please help



Visual C#14  
 
 
David L





PostPosted: Visual C# IDE, root node should not be expanded at page load Top

Change the ExpandDepth property of your treeview control from "FullyExpand" to 0.

Did that solve it


 
 
Musafir





PostPosted: Visual C# IDE, root node should not be expanded at page load Top

Hi..

Thanks for the reply.. I tried that.. but that didnt solve the problem