New items are not droppable

2 posts, 0 answers
  1. Aman
    Aman avatar
    1 posts
    Member since:
    Jan 2015

    Posted 06 Feb 2015 Link to this post


    I'm trying to drag iteams from a ListView to a TreeView. I made ".k-item" as a kendoDropTarget and I'm finding the text of the drop target and appending the new node to it. This way I'm able to drop elements from the ListView. However, these newly dropped elements are not droppable themselves, and if I try to drop new elements its not going inside the node I desired to. Please help.

    The original <li> elements have a data-role="drop-target" attribute, but new ones are missing this.
  2. Alex Gyoshev
    Alex Gyoshev avatar
    2527 posts

    Posted 06 Feb 2015 Link to this post

    Hello Aman,

    Using the TreeList as a kendoDropTarget is not supported, because the drop target will modify the TreeView HTML without changing the underlying model. Instead, use the drop event of the draggable component, and call the TreeView API methods (append / insertBefore / insertAfter).

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top