Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lennart on Jan 16, 2008 17:06
open dhtmlx forum
Drag and drop between trees - how to know the source?

Hi,
I have a question about drag'n'drop between trees - is there a way letting the target node know the id of the source's tree? The only idea I had was to do this using the nodes' type...
Answer posted by Support on Jan 17, 2008 02:17
Actually the both onDrag and onDrop event handlers provides info about source and target trees

for onDrag and onDrop - 4th and 5th parameters - objects of source and target tree


by knowing tree object you can get the container ID as
    stree.parentObject.id