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
childrenmethod might return incorrect results. When the developer wants to obtain the sortable items it is recommended to use widget'sitemsmethod.
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");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(sortable.items());
</script>