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

DropDownTreeEventBuilder

Methods

Change(System.String)

Fired when the value of the widget 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().DropDownTree()
                        .Name("DropDownTree")
                        .Events(events => events.Change("change"))
            )

Open(System.String)

Fired when the popup of the widget 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().DropDownTree()
                        .Name("DropDownTree")
                        .Events(events => events.Open("open"))
            )

DataBound(System.String)

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

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().DropDownTree()
                        .Name("DropDownTree")
                        .Events(events => events.DataBound("dataBound"))
            )

Close(System.String)

Fired when the popup of the widget is closed.

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().DropDownTree()
                        .Name("DropDownTree")
                        .Events(events => events.Close("close"))
            )

Filtering(System.String)

Triggered before filtering.

For more information see Filtering event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().DropDownTree()
                        .Name("DropDownTree")
                        .Events(events => events.Filtering("filtering"))
            )

Open(System.Func)

Defines the inline handler of the open client-side event

For more information see Open event.

Parameters

onOpenAction - System.Func<Object,Object>

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

Example


            @( Html.Kendo().DropDownTree()
                      .Name("DropDownTree")
                      .Events(events => events.Open(
                           @<text>
                           function(e) {
                               // event handling code
                           }
                           </text>
                      ))
                      .Render();
            )

DataBound(System.Func)

Defines the inline handler of the dataBound client-side event

For more information see DataBound event.

Parameters

onDataBoundAction - System.Func<Object,Object>

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

Example


            @( Html.Kendo().DropDownTree()
                      .Name("DropDownTree")
                      .Events(events => events.DataBound(
                           @<text>
                           function(e) {
                               // event handling code
                           }
                           </text>
                      ))
                      .Render();
            )

Close(System.Func)

Defines the inline handler of the close client-side event

For more information see Close event.

Parameters

onCloseAction - System.Func<Object,Object>

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

Example


            @( Html.Kendo().DropDownTree()
                      .Name("DropDownTree")
                      .Events(events => events.Close(
                           @<text>
                           function(e) {
                               // event handling code
                           }
                           </text>
                      ))
                      .Render();
            )

Filtering(System.Func)

Defines the inline handler of the close client-side event

For more information see Filtering event.

Parameters

onFilteringAction - System.Func<Object,Object>

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

Example


            @( Html.Kendo().DropDownTree()
                      .Name("DropDownTree")
                      .Events(events => events.Filtering(
                           @<text>
                           function(e) {
                               // event handling code
                           }
                           </text>
                      ))
                      .Render();
            )

Change(System.Func)

Defines the inline handler of the change client-side event

For more information see Change event.

Parameters

onChangeAction - System.Func<Object,Object>

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

Example


            @( Html.Kendo().DropDownTree()
                      .Name("DropDownTree")
                      .Events(events => events.Change(
                           @<text>
                           function(e) {
                               // event handling code
                           }
                           </text>
                      ))
                      .Render();
            )

Select(System.String)

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

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().DropDownTree()
                        .Name("DropDownTree")
                        .Events(events => events.Select("select"))
            )

Select(System.Func)

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

For more information see Select event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().DropDownTree()
                        .Name("DropDownTree")
                        .Events(events => events.Select(
                            @<text>
                            function(e) {
                                // event handling code
                            }
                            </text>)
                        )
            )

In this article
Not finding the help you need?