|
Rank: Member Groups: Member
Joined: 10/22/2007 Posts: 18
|
Is there any way to have a treeview show as fully expanded when it first appears? Seems like all examples show expansion on click only.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
You need to explicitly call ExpandAll method on each of the top level node.
Thanks
|
|
Rank: Member Groups: Member
Joined: 10/22/2007 Posts: 18
|
Got it. Here is the code that I tried just after the databind in Page_Load() that seems to work well:
Code: C#
foreach (EO.Web.TreeNode node in TreeView1.Nodes)
{
if (node.IsTopLevel) node.ExpandAll();
}
Thanks!
|
|