items
Obtains an array of the DOM elements which correspond to the data items from the view method of the Kendo UI DataSource.
Returns
Array
- The currently rendered view items ( depending on the item template, <div>
, <li>
, <tr>
, and other elements).
<select id="listBox">
<option>Orange</option>
<option>Apple</option>
</select>
<script>
$("#listBox").kendoListBox({
dataSource: [ "Orange", "Apple" ],
connectWith: "listBoxB"
});
// get a reference to the first list box widget
var listBox = $("#listBox").data("kendoListBox");
var items = listBox.items();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(items); // logs the items
</script>