items
Obtains an Array of the DOM elements, which correspond to the data items from the Kendo UI DataSource view.
Returns
Array
The currently rendered dropdown list items (<li>
elements).
Example
<input id="multicolumncombobox" />
<script>
$("#multicolumncombobox").kendoMultiColumnComboBox({
dataTextField: "text",
dataValueField: "value",
dataSource: [
{ text: "Apples", value: "1" },
{ text: "Oranges", value: "2" }
],
columns: [
{ field: "text", title: "Text" },
{ field: "value", title: "Value" }
]
});
var multicolumncombobox = $("#multicolumncombobox").data("kendoMultiColumnComboBox");
// get the list items
var items = multicolumncombobox.items();
console.log(items.length); // outputs the number of items
</script>
In this article