AutoCompleteEventBuilder
Methods
Select(System.Func)
Defines the handler of the Select client-side event. Fires when an item from the suggestion popup is selected by the user.
For more information see Select event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Select(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Select(System.String)
Defines the handler of the Select client-side event. Fires when an item from the suggestion popup is selected by the user.
For more information see Select event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the select event.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Select("onSelect")
)
)
Change(System.Func)
Defines the handler of the Change client-side event. Fires when the value of the AutoComplete is changed by the user.
For more information see Change event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Change(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Change(System.String)
Defines the handler of the Change client-side event. Fires when the value of the AutoComplete is changed by the user.
For more information see Change event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the change event.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Change("onChange")
)
)
DataBound(System.Func)
Defines the handler of the DataBound client-side event. Fires when the AutoComplete is bound to data from its data source.
For more information see DataBound event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.DataBound(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
DataBound(System.String)
Defines the handler of the DataBound client-side event. Fires when the AutoComplete is bound to data from its data source.
For more information see DataBound event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the dataBound event.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.DataBound("onDataBound")
)
)
Filtering(System.Func)
Defines the handler of the Filtering client-side event. Fires when the AutoComplete is about to filter the data source.
For more information see Filtering event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Filtering(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Filtering(System.String)
Defines the handler of the Filtering client-side event. Fires when the AutoComplete is about to filter the data source.
For more information see Filtering event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the filtering event.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Filtering("onFiltering")
)
)
Open(System.String)
Defines the handler of the Open client-side event. Fires when the suggestion popup of the AutoComplete is opened by the user.
For more information see Open event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the open event.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Open("onOpen")
)
)
Open(System.Func)
Defines the handler of the Open client-side event. Fires when the suggestion popup of the AutoComplete is opened by the user.
For more information see Open event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Open(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Close(System.Func)
Defines the handler of the Close client-side event. Fires when the suggestion popup of the AutoComplete is closed by the user.
For more information see Close event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Close(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Close(System.String)
Defines the handler of the Close client-side event. Fires when the suggestion popup of the AutoComplete is closed by the user.
For more information see Close event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the close event.
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Close("onClose")
)
)