Edit this page

cancel

Fires when item sorting is canceled by pressing the Escape key.

Event Data

e.item jQuery

The element that is dragged.

Example

<ul id="sortable">
    <li>Item1</li>
    <li>Item2</li>
    <li>Item3</li>
</ul>

<script>
    $("#sortable").kendoSortable({
        cancel: function(e) {
            console.log(e.item.text() + " sorting called!");
        }
    });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy