KanbanFeature.cshtml
@(Html.EJ().Kanban("Kanban")
.ClientSideEvents(eve => eve.CardDragStop("cardDragStop"))
)
function cardDragStop(args) {
args.cancel = true; // Set arguments cancel value as true
if (args.cancel)
$("#Kanban").find(".e-targetclone").remove(); // target clone was removed
alert("cancel card drop");
} |
Thank you for your answer!)
After using this $("#Kanban").find(".the-target clone").remove();
all cards cannot move.
kanbanFeature.cshtml
@(Html.EJ().Kanban("Kanban")
.ClientSideEvents(eve => eve.CardDragStop("cardDragStop")) // Card drop event
)
<script>
function cardDragStop(args) {
if (args.data[0][0].Id == 8 || args.data[0][0].Id == 10) { // Set particular card to prevent card dropping
args.cancel = true;
$("#Kanban").find(".e-targetclone").remove(); // target clone was removed
alert("cancel card drop");
}
}
</script> |