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
30
How to get the highlighted parent node values after drag operation?
posted

I am currently using multi Tree model and trying to get the parent node after dragging files from Source Tree. Is there any method avaliable to get the parent node after drag operation?.

I need to send the updated information to server as JSON file

Parents Reply
  • 4315
    Offline posted in reply to Kavitha Parupati

    Hi, Kavitha.

    Sorry for the demo link, here it is.

    In the demo, you can see that using `ui.data.Folder` will give you JSON with all the data in the update tree, that contains also the dropped node data.

    If you don't want the data from the root node, but from some other node then you can get that node and then get all the direct children of the parent node as an array and continue with the children on the next level. I've updated the demo above with the following code: `ui.owner.nodeByPath(ui.path).children()`.

    Thanks

Children