dataItems

Returns

kendo.data.ObservableArray An array of data items to which the widget is bound.

Example

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