change
Fired when the value of the widget is changed by the user. As of 2015 Q3 SP1 cascading widget will trigger change event when its value is changed due to parent update.
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. Important: The event is not fired when the value of the widget is changed programmatically. If you need to handle changes made by API, wire the cascade event.
Event Data
e.sender kendo.ui.ComboBox
The widget instance which fired the event.
Example - subscribe to the "change" event during initialization
<input id="combobox" />
<script>
$("#combobox").kendoComboBox({
dataSource: [ "Apples", "Oranges" ],
change: function(e) {
var value = this.value();
// Use the value of the widget
}
});
</script>
Example - subscribe to the "change" event after initialization
<input id="combobox" />
<script>
function combobox_change(e) {
var value = this.value();
// Use the value of the widget
}
$("#combobox").kendoComboBox({
dataSource: [ "Apples", "Oranges" ]
});
var combobox = $("#combobox").data("kendoComboBox");
combobox.bind("change", combobox_change);
</script>