Drag and Drop TreeView

2 posts, 0 answers
  1. technotes
    technotes avatar
    9 posts
    Member since:
    Jan 2013

    Posted 21 Nov 2016 Link to this post

    This is a two part question, first how do I know what controller parameters are needed fro the update action for the tree view (Same question applies to all Kendo controls) No error is thrown so I don't known what route (route signature) to build.


    Second, could be related to the first my action is public JsonResult Update([DataSourceRequest] DataSourceRequest request, ProductViewModel product) but when I do a drag and drop the action isn't fired.  I have found when this happens typically it is because I don't have a matching signature for the route... but again no error is thrown so I can't debug it. 


    Thanks in advance and sorry if I am not using the correct terminology for this.

  2. Viktor Tachev
    Viktor Tachev avatar
    1789 posts

    Posted 23 Nov 2016 Link to this post


    The Update action for the DataSource expects the request and the updated item to be passed as parameters by default. Check out the following example that illustrates how you can implement editing in the TreeList component.

    Regarding your other query. If you would like to call the Update action after an item was dropped you can handle the dragEnd event. In the handler you can call the sync() method for the dataSource.

    function dragEnd(e) {

    Viktor Tachev
    Telerik by Progress
    Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Back to Top