New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI MultiSelect for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the MultiSelectEventBuilder class.

C#
public MultiSelectEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The MultiSelect event handlers.

Methods

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 via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

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 via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder Change(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Change event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Defines the handler of the Close client-side event. 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.

C#
public MultiSelectEventBuilder Close(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Close(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Close client-side event. 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.

C#
public MultiSelectEventBuilder Close(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Close event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Close("close"))
)

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 via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder DataBound(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.DataBound(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

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 via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder DataBound(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DataBound event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.DataBound("dataBound"))
)

Defines the handler of the Deselect client-side event. Fired when an item is deselected or tag is removed.

C#
public MultiSelectEventBuilder Deselect(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Deselect(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Deselect client-side event. Fired when an item is deselected or tag is removed.

C#
public MultiSelectEventBuilder Deselect(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Deselect event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Deselect("deselect"))
)

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 via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder Filtering(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Filtering(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

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 via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder Filtering(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Filtering event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Filtering("filtering"))
)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the MultiSelect is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the MultiSelect is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the KendoKeydown event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Defines the handler of the Open client-side event. 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.

C#
public MultiSelectEventBuilder Open(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Open(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Open client-side event. 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.

C#
public MultiSelectEventBuilder Open(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Open event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Open("open"))
)

Defines the handler of the Select client-side event. Fired when an item from the popup is selected by the user.

C#
public MultiSelectEventBuilder Select(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Select(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Select client-side event. Fired when an item from the popup is selected by the user.

C#
public MultiSelectEventBuilder Select(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Select event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events.Select("select"))
)

Defines the handler of the SelectAllChange client-side event. Fired when the user clicks the "Select all" header item or activates it via keyboard. The event is preventable — calling e.preventDefault() cancels the built-in select/deselect-all logic so the application can implement its own (for example, fetching and selecting all records from a remote data source).The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder SelectAllChange(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .

Defines the handler of the SelectAllChange client-side event. Fired when the user clicks the "Select all" header item or activates it via keyboard. The event is preventable — calling e.preventDefault() cancels the built-in select/deselect-all logic so the application can implement its own (for example, fetching and selecting all records from a remote data source).The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public MultiSelectEventBuilder SelectAllChange(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the SelectAllChange event.

Returns:

MultiSelectEventBuilder

Returns the current instance of MultiSelectEventBuilder .