Rank: Newbie Groups: Member
Joined: 9/13/2010 Posts: 9
|
Hi Im using a treeview control , I want to know if it's possible to find the full path of an item clicked.. I use this small code but it give a sequence of Index which I bellive starting from the root then the ChildNodes. Quote: dim MyPath as String
Protected Sub TreeView3_ItemClick(ByVal sender As Object, ByVal e As EO.Web.NavigationItemEventArgs) Handles TreeView3.ItemClick Dim tmp As String
MyPath = e.TreeNode.Path
End Sub
The result is "_i0/_i1/_i2/_i0" Thank you for your help
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
No. The Path property gives you an unique string to identify the node, but it also includes the item name, not just the index. If you only want the index, you will have to write the code yourself in a loop using the node's Index property to create the full path in your format.
Thanks!
|