This is a migrated thread and some comments may be shown as answers.

Identify treeview changes on server after client commitChanges

1 Answer 71 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 05 Sep 2014, 04:32 AM
Telerik.Web.UI.dll, version 2014.1.225.40

using c#

I populate/bind my treeView using the DataSource property. When changes are made on the client, I use trackChanges / commitChanges per documentation. 

Upon postback to the server, how do I identify all changes made in the treeview control? Is there a built-in way to enumerate just changed nodes, then discern between which nodes need to be added, updated, deleted? I've seen lots of documentation on the importance of using trackChanges / commitChanges, but not much on what to do after that.

Thanks for any direction

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 09 Sep 2014, 01:29 PM
Hello,

There is no built-in functionality that shows the changes made on the client. Using track and commit changes all changes made on the client will be applied to your RadTreeView object on the server. As I mentioned there is no built-in functionality that will list or show the changes made on the client but since the RadTreeView object is updated properly you can iterate through the the RadTreeView nodes and save the nodes to the data base as shown in this help article.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Stephen
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or