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) {
/* The result can be observed in the DevTools(F12) console of the browser. */
            console.log(e.item.text() + " sorting called!");
        }
    });
</script>
In this article