PDA

View Full Version : Tree drag and drop


Erxar
01-06-2009, 04:34 PM
I've got a problem with drag and drop in a tree component.

I'd like to send information about tree being rearranged to the server and for that I need "old" parent of the node that was moved and the "new" parent of this node.

Anybody know how to get this data? Thanks.

box86rowh
01-06-2009, 05:39 PM
when you do a drag and drop when the dragcomplete event fires i think you can access the source tree as well as the landing tree, you can record that data or send it off to the server then

Erxar
01-06-2009, 10:01 PM
I might have access to the trees but i don't know how to access both new and old parent of the transfered item. There is no such field as "ParentOfTheLastDragedItem" on tree control ;)

Could you be more specific?