Events
You can subscribe to the Change
, Select
, Open
, Close
, DataBound
, and Filtering
MultiColumnComboBox events and further customize the functionality of the component.
For a complete example on basic MultiColumnComboBox events, refer to the demo on using the events of the MultiColumnComboBox.
Handling Events by Handler Name
The following example demonstrates how to subscribe to events by a handler name.
@(Html.Kendo().MultiColumnComboBox()
.Name("multicolumncombobox")
.Events(e => e
.Change("onChange")
.Select("onSelect")
.Open("onOpen")
.Close("onClose")
.DataBound("onDataBound")
.Filtering("onFiltering")
)
)
function onOpen() {
// Handle the open event.
}
function onClose() {
// Handle the close event.
}
function onChange() {
// Handle the change event.
}
function onDataBound() {
// Handle the dataBound event.
}
function onSelect(e) {
// Handle the select event.
}
function onFiltering() {
// Handle the filtering event.
}
Handling Events by Template Delegate
The following example demonstrates how to subscribe to events by a template delegate.
@(Html.Kendo().MultiColumnComboBox()
.Name("multicolumncombobox")
.Events(e => e
.Open(@<text>
function() {
// Handle the `open` event inline.
}
</text>)
.Close(@<text>
function() {
// Handle the `close` event inline.
}
</text>)
.Change(@<text>
function() {
// Handle the `change` event inline.
}
</text>)
.DataBound(@<text>
function() {
// Handle the `dataBound` event inline.
}
</text>)
.Select(@<text>
function() {
// Handle the `select` event inline.
}
</text>)
.Filtering(@<text>
function() {
// Handle the `filtering` event inline.
}
</text>)
)
)