items

Get the listview DOM element items

Returns

jQuery The listview DOM element items

Example

<div data-role="view">
  <a data-role="button" data-click="getListViewItems">Get items</a>
  <ul id="listView" data-role="listview" data-style="inset">
    <li>Foo</li>
    <li>Bar</li>
  </ul>
</div>

<script>
function getListViewItems() {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log($("#listView").data("kendoMobileListView").items());
}

new kendo.mobile.Application();
</script>
In this article
Not finding the help you need? Improve this article