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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
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!
|