Welcome Guest Search | Active Topics | Sign In | Register

TreeView Parentnode Options
UweD
Posted: Friday, February 20, 2009 12:27:13 PM
Rank: Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 37
Is theire something compareable to ValuePath from MS TreeView?
During PopulateOnDemand I need information about all parents but I find only the actual parent in e.NavigationItem, but

EO.Web.TreeNode node = (EO.Web.TreeNode)e.NavigationItem;
node.Parent is null.

I found node.Path but only NewNode=Treeview.Nodes[0] works. Treeview.Nodes[0].ChildNodes[0] is also null.
eo_support
Posted: Monday, February 23, 2009 11:55:00 AM
Rank: Administration
Groups: Administration

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

TreeNode.Path should always return you the correct value. However for performance reason, the TreeNode that is currently being populated is created as an "island" node and it is not added into the TreeView's tree node collection. That's why you can not navigate to other nodes from this node. In addition, TreeNode also provide you a Value property. This property is entirely for yours to use. So if you need additional information to populate the nodes, you can store it there.

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.