Welcome Guest Search | Active Topics | Sign In | Register

TreeView-Full Path Options
AirbusA330
Posted: Sunday, November 7, 2010 10:53:52 AM
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
eo_support
Posted: Monday, November 8, 2010 8:42:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
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!


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.