Thursday, April 03, 2008

Tree View - ExpandDepth to work on Postback

Here is what is required:


While Creating nodes,

if(node.Depth == 1)
{

node.Expanded = true;

}
else
{

node.Expanded = false;

}