enable

Enables or disables the widget.

Parameters

enable Boolean

If set to true the widget will be enabled. If set to false the widget will be disabled.

Example - enable the widget

<input id="dropdowntree"/>

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