Welcome Guest Search | Active Topics | Sign In | Register

treeview wont expand Options
r0k3t
Posted: Friday, December 21, 2007 3:09:20 PM
Rank: Member
Groups: Member

Joined: 7/3/2007
Posts: 21
Hi there,

I am setting a treeview datasource from an XML file, this works great however I cannot get it to expand for the life of me. This si what I have tried.

Quote:

TreeView1.XmlFile = "XmlToc/" + document.Id + ".xml";
foreach (EO.Web.TreeNode node in TreeView1.Nodes[0].SubGroup.Nodes)
{
node.Expanded = true;
}
reeView1.ExpandAll();


What am I missing - shouldn't that work?
eo_support
Posted: Friday, December 21, 2007 3:45:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi,

Try call DataBind right after you set XmlFile and see if it works.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.