Drag and Drop is not working when TreeView has link items

2 posts, 0 answers
  1. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 28 Nov 2016 Link to this post

    I have a partial view that receives a model filled with data that can be bound to the Kendo TreeView like this:

                .BindTo(Model, (NavigationBindingFactory<TreeViewItem> mappings) =>
                  mappings.For<MenuItemModel>(binding => binding
                    .ItemDataBound((item, model) =>
                      item.Text = model.Text;
                      item.ActionName = model.Action;
                      item.ControllerName = model.Controller;
                      item.ImageUrl = model.Icon;
                      if (model.Items == null || model.Items.Count == 0)
                        item.Id = model.Action;
                      item.Enabled = true;
                    .Children(model => model.Items)
                .Events(e =>

    My problem is that the Drag & Drop functionality only works when the icon of a treeview item is dragged. When the text is dragged the event handlers do not even get called. Is this intended? If yes then, is there a work around for this issue?
    I need the links (anchor tags) because I have an event handler bound to them that requires both the url and the id properties from the dataItem.

  2. Dimitar
    Dimitar avatar
    359 posts

    Posted 30 Nov 2016 Link to this post


    I was able to reproduce the issue and track it down to Q3 2015, when it was introduced. I am afraid that currently there is no workaround for it. I've logged a public issue for it, where you may track its progress and add comments. As a small token of gratitude for reporting it to us, I updated your Telerik points.

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