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 2013.2 : How to detect a Drag and drop between two nodes
posted

My issue is the folowing.

I'm using igTree to manage the chapters in a tree. I'm using the drag and drop cool feature to reach this objective. I'm facing an issue when i want to drag & drop a node between two nodes. I would like to know how to detect this igTree behaviour in order to do some controls.

Thanks for your help.

Stéphane

Parents
No Data
Reply
  • 15320
    Suggested Answer
    Offline posted

    Hello SLC75000,

    Thank you for posting in our community.

    In order to detect the drag and drop operation that is currently performed, I would suggest you to handle nodeDropping event of the tree and through ui.helper you may get reference to the helper for the drag operation and check whether it contains "Move between" string. For instance:

    nodeDropping: function (evt, ui) {

     

    if (ui.helper.text().indexOf("Move between")!=-1) {

     

    // your code here

     

    }

     

    }

    Please let me know if this helps you achieving what you want and if you have any further questions.

    Sincerely,

    Tsanna

Children