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

The fluent API for subscribing to Kendo UI DropDownList events.

Definition

Constructors

Initializes a new instance of the DropDownListEventBuilder class.

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

The client events.

Methods

Defines the inline handler of the Cascade client-side event

C#
public DropDownListEventBuilder Cascade(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

DropDownListEventBuilder

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

Defines the name of the JavaScript function that will handle the Cascade client-side event.

C#
public DropDownListEventBuilder Cascade(string handler)
Parameters:handlerstring

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

Returns:

DropDownListEventBuilder

Example:
C#
@(Html.Kendo().DropDownList()
.Name("DropDownList")
.Events(events =&gt; events.Cascade("cascade"))
)

Defines the inline handler of the Change client-side event

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

DropDownListEventBuilder

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

Defines the name of the JavaScript function that will handle the Change client-side event.

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

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

Returns:

DropDownListEventBuilder

Example:
C#
@(Html.Kendo().DropDownList()
.Name("DropDownList")
.Events(events =&gt; events.Change("change"))
)

Defines the inline handler of the Close client-side event

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

DropDownListEventBuilder

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

Defines the name of the JavaScript function that will handle the Close client-side event.

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

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

Returns:

DropDownListEventBuilder

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

Defines the inline handler of the DataBound client-side event

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

DropDownListEventBuilder

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

Defines the name of the JavaScript function that will handle the DataBound client-side event.

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

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

Returns:

DropDownListEventBuilder

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

Defines the inline handler of the Filtering client-side event

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

DropDownListEventBuilder

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

Defines the name of the JavaScript function that will handle the Filtering client-side event.

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

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

Returns:

DropDownListEventBuilder

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

Defines the inline handler of the KendoKeydown client-side event

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

DropDownListEventBuilder

Defines the name of the JavaScript function that will handle the KendoKeydown client-side event.

C#
public virtual DropDownListEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

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

Returns:

DropDownListEventBuilder

Defines the inline handler of the Open client-side event

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

DropDownListEventBuilder

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

Defines the name of the JavaScript function that will handle the Open client-side event.

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

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

Returns:

DropDownListEventBuilder

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

Defines the inline handler of the Select client-side event

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

DropDownListEventBuilder

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

Defines the name of the JavaScript function that will handle the Select client-side event.

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

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

Returns:

DropDownListEventBuilder

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