Get target value in drag n' drop


Hello,



I’m using drag and drop between dhtmlxtree and dhtmlxgrid. is there away to retrive in one function both the source id (grid dragged row id) and tree node target id(not the new item id, but the item he’s dragged to and will become parent).



I tried getParentId to the targetId, but got null.



 



Danny

In latest version there must not be a problem, default onDrag even can provide such info ( event need to be attached to tree )

tree.attachEvent(“onDrag”,function(sid,tid,ad){
    //sid - id of grid item
    //tid - id of tree item
    //ad - sibling id in drag as sibling mode

})

if you are using some old version of dhtmlxGrid - please provide version number.