AutoCompleteEventBuilder
Methods
Change(System.String)
Defines the handler of the Change client-side event. Fired when the value of the widget is changed by the user.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Change("onChange")
)
)
Change(System.Func)
Defines the handler of the Change client-side event. Fired when the value of the widget is changed by the user.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Change(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Close(System.String)
Defines the handler of the Close client-side event. Fired when the suggestion popup of the widget is closed by the user.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Close("onClose")
)
)
Close(System.Func)
Defines the handler of the Close client-side event. Fired when the suggestion popup of the widget is closed by the user.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Close(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
DataBound(System.String)
Defines the handler of the DataBound client-side event. Fired when the widget is bound to data from its data source.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.DataBound("onDataBound")
)
)
DataBound(System.Func)
Defines the handler of the DataBound client-side event. Fired when the widget is bound to data from its data source.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.DataBound(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Filtering(System.String)
Defines the handler of the Filtering client-side event. Fired when the widget is about to filter the data source.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Filtering("onFiltering")
)
)
Filtering(System.Func)
Defines the handler of the Filtering client-side event. Fired when the widget is about to filter the data source.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Filtering(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Open(System.String)
Defines the handler of the Open client-side event. Fired when the suggestion popup of the widget is opened by the user.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Open("onOpen")
)
)
Open(System.Func)
Defines the handler of the Open client-side event. Fired when the suggestion popup of the widget is opened by the user.The event handler function context (available through the keyword this) 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 AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Open(@<text>
function(ev) {
//event handling code
}
</text>)
)
)
Select(System.String)
Defines the handler of the Select client-side event. Fired 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.
RETURNS
Returns the current instance of AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Select("onSelect")
)
)
Select(System.Func)
Defines the handler of the Select client-side event. Fired 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.
RETURNS
Returns the current instance of AutoCompleteEventBuilder .
Example
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Events(events => events
.Select(@<text>
function(ev) {
//event handling code
}
</text>)
)
)