MVVM and kendoDropTarget Issue

2 posts, 0 answers
  1. fbaptiste
    fbaptiste avatar
    19 posts
    Member since:
    Apr 2007

    Posted 31 Mar 2015 Link to this post

    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?
  2. Petyo
    Petyo avatar
    2436 posts

    Posted 02 Apr 2015 Link to this post

    Hello Fred,

    the DropTargetArea is more suitable for the scenario you describe. 

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