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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to recover info to save treeview

Thread ID:

Created:

Updated:

Platform:

Replies:

145546 Jun 27,2019 10:18 AM UTC Jun 28,2019 01:19 PM UTC JavaScript - EJ 2 1
loading
Tags: TreeView
Chris
Asked On June 27, 2019 10:18 AM UTC

Hello,

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

Christopher Issac Sunder K [Syncfusion]
Replied On 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.  

Thanks, 
Christo 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon