We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to recover info to save treeview


How to retrieve the information to save the changes in DB following a drag & drop of Items in a treeview?

Can not find an example :( and I do not find how to do it

Could you propose one?

Thank you

1 Reply

CI Christopher Issac Sunder K Syncfusion Team June 28, 2019 01:19 PM UTC

Hi Chris, 

Greetings from Syncfusion support. 

You can make use of getTreeData() method to get the updated data source of TreeView after performing some operation like drag and drop, node editing, node selecting/unSelecting, node expanding/collapsing, node checking/unChecking, adding and removing node. 
  • If you pass the ID of TreeView node as arguments for this method then it will return the updated data source of the corresponding node otherwise it will return the entire updated data source of TreeView.
  • The updated data source also contains custom attributes if you specified in data source.

Please refer the below API reference link, 

Please let us know if you need further assistance on this.  


Live Chat Icon For mobile
Up arrow icon