Edit this page

items

Returns the sortable elements. Filtered items and the placeholder are excluded from the collection.

Important: While user drags to sort the original item is hidden and the placeholder is appended to the Sortable collection. This is why jQuery's children method might return incorrect results. When the developer wants to obtain the sortable items it is recommended to use widget's items method.

Returns

jQuery the sortable items

Example - using the items method

<div id="sortable">
    <h4>Sortable List</h4>
    <div>Item1</div>
    <div>Item2</div>
    <div>Item3</div>
</div>

<script>
    var sortable = $("#sortable").kendoSortable({
        filter: ">div"
    }).data("kendoSortable");

    console.log(sortable.items());
</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