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

Defines the fluent API for configuring the events of the Kendo DropDownTree for ASP.NET MVC

Definition

Constructors

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

Methods

Defines the inline handler of the change client-side event

C#
public DropDownTreeEventBuilder Change(Func<object, object> onChangeAction)
Parameters:onChangeActionFunc<object, object>

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

Returns:

DropDownTreeEventBuilder

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

Fired when the value of the widget is changed by the user.

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

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

Returns:

DropDownTreeEventBuilder

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

Defines the inline handler of the close client-side event

C#
public DropDownTreeEventBuilder Close(Func<object, object> onCloseAction)
Parameters:onCloseActionFunc<object, object>

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

Returns:

DropDownTreeEventBuilder

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

Fired when the popup of the widget is closed.

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

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

Returns:

DropDownTreeEventBuilder

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

Defines the inline handler of the dataBound client-side event

C#
public DropDownTreeEventBuilder DataBound(Func<object, object> onDataBoundAction)
Parameters:onDataBoundActionFunc<object, object>

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

Returns:

DropDownTreeEventBuilder

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

Triggered after the dataSource change event has been processed (adding/removing items);

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

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

Returns:

DropDownTreeEventBuilder

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

Defines the inline handler of the close client-side event

C#
public DropDownTreeEventBuilder Filtering(Func<object, object> onFilteringAction)
Parameters:onFilteringActionFunc<object, object>

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

Returns:

DropDownTreeEventBuilder

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

Triggered before filtering.

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

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

Returns:

DropDownTreeEventBuilder

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

Defines the handler of the KendoKeydown client-side event.

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

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

Returns:

DropDownTreeEventBuilder

Defines the inline handler of the open client-side event

C#
public DropDownTreeEventBuilder Open(Func<object, object> onOpenAction)
Parameters:onOpenActionFunc<object, object>

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

Returns:

DropDownTreeEventBuilder

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

Fired when the popup of the widget is opened by the user.

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

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

Returns:

DropDownTreeEventBuilder

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

Triggered when a node is being selected by the user. Cancellable.

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

The handler code wrapped in a text tag.

Returns:

DropDownTreeEventBuilder

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

Triggered when a node is being selected by the user. Cancellable.

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

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

Returns:

DropDownTreeEventBuilder

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