Get all nodes details after add/remove

2 posts, 0 answers
  1. Murugaraj
    Murugaraj avatar
    1 posts
    Member since:
    Jul 2017

    Posted 10 Jun Link to this post

    Wanted to get the source treeview and destination treeview nodes data(including child), when you move node from one treeview to another treeview. Is there any way I can get it?


  2. Missing user
    Missing user avatar

    Posted 12 Jun Link to this post

    Hello Murugaraj,

    Using the TreeView drag and drop editing directive, the child nodes are moved automatically.

    If you want to handle the events manually, it's important to know what is the structure of your data and do you have it loaded locally. When using local hierarchical data, the child items are moved with the parent item. When using local flat data, you will have to acquire the child nodes yourself. The editing directive uses the children function to recursively collect all child nodes. Here's an example. The child nodes of the clicked item are logged to the console.

    If that doesn't solve your problem, I'd have to ask for more details about setup, data structure, data availability (local or loaded on demand for each newly expanded node). A runnable example would be best.

    Looking forward to hearing back from you.

    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top