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

MVVM and kendoDropTarget Issue

1 Answer 29 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
fbaptiste
Top achievements
Rank 1
fbaptiste asked on 31 Mar 2015, 11:46 PM
My Scenario is that i have a <UL> element that is binded to an observable collection.
on page load, the following JS is being ran to make the children droppable targets.

$("li").kendoDropTarget({<setting here>})

this works well for existing elements at the time of page load, but doesn't work for newly created elements that are pushed later to the ObservableCollection.
How can I make sure that the same dropTarget settings are applied to those as well without rerunning the above code for each pushed item?

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 02 Apr 2015, 03:33 PM
Hello Fred,

the DropTargetArea is more suitable for the scenario you describe. 

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