toggle

Opens or closes the widget popup.

Parameters

toggle Boolean (optional)

Defines the whether to open/close the drop-down list.

Example - set text of the widget

<input id="dropdowntree" />

<script>
    $("#dropdowntree").kendoDropDownTree({
        dataSource: [{ text: "a-item1", value: 1 }, { text: "b-item2", value: 2 }]
    });
    var dropdowntree = $("#dropdowntree").data("kendoDropDownTree");
    dropdowntree.toggle()
</script>
In this article