Fires when the value has been changed.
Example
$("#comboBox").kendoComboBox({
change: function(e) {
// handle event
}
});
To set after initialization
// get a reference to instance of the Kendo UI ComboBox
var combobox = $("#comboBox").data("kendoComboBox");
// bind to the change event
combobox.bind("change", function(e) {
// handle event
});
Fires when the drop-down list is closed
Example
$("#comboBox").kendoComboBox({
close: function(e) {
// handle event
}
});
To set after initialization
// get a reference to instance of the Kendo UI ComboBox
var combobox = $("#comboBox").data("kendoComboBox");
// bind to the close event
combobox.bind("close", function(e) {
// handle event
});
Fires when the drop-down list is opened
Example
$("#comboBox").kendoComboBox({
open: function(e) {
// handle event
}
});
To set after initialization
// get a reference to instance of the Kendo UI ComboBox
var combobox = $("#comboBox").data("kendoComboBox");
// bind to the open event
combobox.bind("open", function(e) {
// handle event
});
Triggered when a Li element is selected.
Attach select event handler during initialization; detach via unbind()
// event handler for select
var onSelect = function(e) {
// access the selected item via e.item (jQuery object)
};
// attach select event handler during initialization
var combobox = $("#combobox").kendoComboBox({
select: onSelect
});
// detach select event handler via unbind()
combobox.data("kendoComboBox").unbind("select", onSelect);
Attach select event handler via bind(); detach via unbind()
// event handler for select
var onSelect = function(e) {
// access the selected item via e.item (jQuery object)
};
// attach select event handler via bind()
$("#combobox").data("kendoComboBox").bind("select", onSelect);
// detach select event handler via unbind()
$("#combobox").data("kendoComboBox").unbind("select", onSelect);
Event data
-
item
: jQuery
- The selected item chosen by a user.