change

Fired when the value of the widget is changed by the user.

The event handler function context (available via the this keyword) will be set to the widget instance.

Important: The event is not fired when the value of the widget is changed from code.

Event Data

e.sender kendo.ui.DropDownTree

The widget instance which fired the event.

Example - subscribe to the "change" event during initialization

<input id="dropdowntree"/>

<script>
$("#dropdowntree").kendoDropDownTree({
  dataSource: [{ text: "item1", value: 1 }, { text: "item2", value: 2 }],
  change: function(e) {
    var value = this.value();
    // Use the value of the widget
  }
});
</script>

Example - subscribe to the "change" event after initialization

<input id="dropdowntree"/>

<script>
function dropdowntree_change(e) {
  var value = this.value();
  // Use the value of the widget
}
$("#dropdowntree").kendoDropDownTree();
var dropdowntree = $("#dropdowntree").data("kendoDropDownTree");
dropdowntree.bind("change", dropdowntree_change);
</script>
In this article