Get target value in drag n' drop


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.



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

    //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.