This is a migrated thread and some comments may be shown as answers.
Only reordering
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
Naresh
Top achievements
Rank 1
Naresh asked on 25 Jun 2009, 10:02 AM
Hi,
I am using radtree, i have a multi-level tree, and i want to allow only reordering (allow drag and drop between the nodes that have the same immediate parent).

But i can't figure out how can i achieve it using only properties.

I can do it in eventhandler OnNodeDrop

like : "If sourceNode.ParentNode.ID = destNode.ParentNode.ID Then"

but it dosen't work if i have multiple root nodes. And i can put a node as a child node of its sibling because both have the same parent id.

Is there a way?



regards,
Naresh

1 Answer, 1 is accepted

Sort by
0
Naresh
Top achievements
Rank 1
answered on 25 Jun 2009, 11:59 AM
Ok, got it, but not by simply setting properties :)

Use  sourceNode.Parent.ClientID  instead of sourceNode.ParentNode.ID  to check in the event handler
Asked by
Naresh
Top achievements
Rank 1
Answers by
Naresh
Top achievements
Rank 1
Share this question
or