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

New items are not droppable

1 Answer 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Aman
Top achievements
Rank 1
Aman asked on 06 Feb 2015, 10:31 AM
Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 06 Feb 2015, 03:35 PM

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).

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
Aman
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or