PDA

View Full Version : How to Get Dropped TreeNode object ?



dev_orion
28 Jun 2008, 12:48 AM
Hi,

I am trying to Drag TreeNode and drop it into Panel. Everything looks OK except i have no clue where to find the dropped TreeNode Details like text, id, attributes... when i handle notifydrop event.

Regards,
Devendra

Animal
28 Jun 2008, 3:11 AM
Use a DropZone to recieve drop notifications.

The DropZone's methods onNodeEnter, onNodeOver, onNodeOut andonNodeDrop all recieve data as their last parameter.

That data contains a property called node which is the TreeNode being dragged.