dataItems

Returns the array of data items that the widget is bound to.

Returns

kendo.data.ObservableArray The array of items that the ListView is bound to.

Example

<div id ="listView"></div>
<script>
  var dataSource = new kendo.data.DataSource({
    data: [ { name: "Jane Doe" }, { name: "John Doe" }]
  });
  var listview = $("#listView").kendoListView({
    dataSource: dataSource,
    template: "<div>#:name#</div>"
  }).data("kendoListView")
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(listview.dataItems()) //will output the bound array
</script>
In this article