Nov 12, 2009, 7:51 AM
[CLOSED] [1.0] Drag Drop on TreePanel - Get reference to Target node
I'm using the TreePanel on one of my pages, similar to the following example: #/TreePanel/Basic/DragDrop_Between_Trees/
I've got drag and drop of nodes setup for one TreePanel, but I want to know how I can get access to the "Target" node ID from the server-side.
I've got a DirectEvent ("BeforeNodeDrop") which passes in the Source node ID which I can obtain by calling the TreePanel.getSelectedNodes()... method, but I also need to know the target node ID so I can save the change in the database. Are you able to provide any guidance please?
I've tried using the "NotifyDrop" handler of the DropConfig, but this doesn't appear to pass in a reference to the Target node in my function.
Thanks
Dan
I've got drag and drop of nodes setup for one TreePanel, but I want to know how I can get access to the "Target" node ID from the server-side.
I've got a DirectEvent ("BeforeNodeDrop") which passes in the Source node ID which I can obtain by calling the TreePanel.getSelectedNodes()... method, but I also need to know the target node ID so I can save the change in the database. Are you able to provide any guidance please?
I've tried using the "NotifyDrop" handler of the DropConfig, but this doesn't appear to pass in a reference to the Target node in my function.
Thanks
Dan