For example if I have object1
, object2
and object3
These can only be dropped in Zone1
Then I have object4
, object5
and object6
These can only be dropped in Zone2
How could I configure this?
Also I would like object7
to be allowed to drop in either Zone1
or Zone2
but not Zone3
At the moment I have the following configured.
$(document).ready(function () {
$(".draggable").each(function (index, item)
{
$(item).kendoDraggable({
filter: ".handle",
hint: function () {
return $('#box').clone().css("display", "block");
},
dragstart: draggableOnDragStart,
dragend: draggableOnDragEnd
});
});
$("#droptarget").kendoDropTarget({
drop: droptargetOnDrop
});
$("#droptargetGauges").kendoDropTargetArea({
filter: ".test1, .test2",
drop: droptargetOnDrop
});
});
but this means that any div
with the class draggable
can either be dropped in droptarget
or droptargetGauges