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");
    console.log(listBox.dataItems()) //will output the bound array
</script>
In this article
Not finding the help you need? Improve this article