Edit this page

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")
  console.log(listview.dataItems()) //will output the bound array
</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