I'm trying to let the user drag list items to another unsorted list. I can "pick up" the list items, so the Draggable seems to work but when I release them above the DropTarget, they do not get added. I've added some events to check if both the Draggable and DropTarget are initialized correctly and it seems like they are.
HTML:
<ul id="recipe-steps">
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ul>
<ul id="available-steps">
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ul>
DropTarget JS code:
$("#recipe-steps").kendoDropTarget({
dragleave: function (e) {
e.draggable.hint.css("opacity", 1);
},
dragenter: function (e) {
e.draggable.hint.css("opacity", 0.3);
}
});
Draggable JS code:
$("#available-steps").kendoDraggable({
filter: "li",
ignore: "input",
hint: function(element) { return element.clone(); }
});
So the use case here is that a user can drag a step from available-steps to recipe-steps.