items

Obtains an Array of the DOM elements, which correspond to the data items from the Kendo UI HierarchicalDataSource view.

Example

<input id="dropdowntree" />
<script>
$("#dropdowntree").kendoDropDownTree({
    dataSource: [
        { text: "Item 1", value: 1 },
        { text: "Item 2", value: 2, items: [
            { text: "Sub Item 1", value: 3 }
        ]}
    ]
});

var dropdowntree = $("#dropdowntree").data("kendoDropDownTree");
var items = dropdowntree.items();
console.log("Number of items:", items.length);
</script>

Returns

Array The currently rendered first level items.

In this article
items
Not finding the help you need?
Contact Support