ComboBoxEventBuilder
Methods
Change(System.String)
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.
For more information see Change event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the change event.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Change("change"))
)
Change(System.Func)
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.
For more information see Change event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Change(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Close(System.String)
Fired when the popup of the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Close event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the close event.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Close("close"))
)
Close(System.Func)
Fired when the popup of the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Close event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Close(
@<text>
function(e) {
//event handling code
}
</text>
))
)
DataBound(System.String)
Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see DataBound event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the dataBound event.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@( Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.DataBound("dataBound"))
)
DataBound(System.Func)
Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see DataBound event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.DataBound(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Filtering(System.String)
Fired when the widget is about to filter the data source.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Filtering event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the filtering event.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@( Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Filtering("filtering"))
)
Filtering(System.Func)
Fired when the widget is about to filter the data source.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Filtering event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Filtering(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Open(System.String)
Fired when the popup of the widget is opened by the user.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Open event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the open event.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Open("open"))
)
Open(System.Func)
Fired when the popup of the widget is opened by the user.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Open event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Open(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Select(System.String)
Fired when an item from the popup is selected by the user either with mouse/tap or with keyboard navigation.
For more information see Select event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the select event.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Select("select"))
)
Select(System.Func)
Fired when an item from the popup is selected by the user either with mouse/tap or with keyboard navigation.
For more information see Select event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Select(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Cascade(System.String)
Fired when the value of the widget is changed via API or user interaction.
For more information see Cascade event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the cascade event.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Cascade("cascade"))
)
Cascade(System.Func)
Fired when the value of the widget is changed via API or user interaction.
For more information see Cascade event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ComboBoxEventBuilder .
Example
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.Events(events => events.Cascade(
@<text>
function(e) {
//event handling code
}
</text>
))
)