Identify treeview changes on server after client commitChanges

2 posts, 1 answers
  1. Stephen
    Stephen avatar
    1 posts
    Member since:
    May 2014

    Posted 04 Sep 2014 Link to this post

    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

  2. Answer
    Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 09 Sep 2014 Link to this post


    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.

    Boyan Dimitrov

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top