Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
igTree moved node destination path
posted

Hello,

Can you please tell me a way of getting the real destination path for a moved node in a tree in the "nodeDropping" or "nodeDropped" events?

I ve got the initial path in the "nodeDropping" event and it's ok in all test cases.

I was expecting that at least i can rely on ui.targetIndex from "nodeDropping" to get the index of the destination, but it has an unexpected behaviour:

-if you move the node at the end of the tree, targetIndex will indicate 1 position to short

Also, i tried getting new node at it's new location with ui.element, but failed.

Is there a way of getting the real destination path or the new node at it's new place (after being moved)?

Nicusor Eftene