This is a migrated thread and some comments may be shown as answers.

[Solved] TreeNode UniqueID shifts

1 Answer 98 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jason Peetsma
Top achievements
Rank 1
Jason Peetsma asked on 04 Jun 2008, 05:43 PM
Hi,
       What i want to achieve is that i want to sync some server data (Session) with each treeNode in the treeview. I am using the drag and drop functionality,etc. Right now, i am using the UniqueID property.
          When i add a new node what actually happens is that it shifts all the siblings ahead. The unique key is also shifted.
            How can i have some unique id for each tree node so that i can have some data in the session using the id as key. Any Idea ? Thanks,

Regards,

Brendanwood Development Team.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 05 Jun 2008, 07:35 AM
Hello Jason Peetsma,

The UniqueID property depends on the ID which is automatically generated based on the node's index.

I suggest you use the Value or Category property of the node to associate some unique key with it.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Jason Peetsma
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or