DropDownTreeEventBuilder
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 via the this keyword) 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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Change("change"))
)
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 via the this keyword) 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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Change(
@<text>
function(e) {
// event handling code
}
</text>)
)
)
Close(System.String)
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.
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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Close("close"))
)
Close(System.Func)
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.
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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Close(
@<text>
function(e) {
// event handling code
}
</text>)
)
)
DataBound(System.String)
Defines the handler of the DataBound client-side event. Fired when the widget or sub levels of its items are bound to data from the dataSource.The event handler function context (available via the this keyword) 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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.DataBound("dataBound"))
)
DataBound(System.Func)
Defines the handler of the DataBound client-side event. Fired when the widget or sub levels of its items are bound to data from the dataSource.The event handler function context (available via the this keyword) 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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.DataBound(
@<text>
function(e) {
// 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 via the this keyword) 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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Filtering("filtering"))
)
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 via the this keyword) 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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Filtering(
@<text>
function(e) {
// event handling code
}
</text>)
)
)
Open(System.String)
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.
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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Open("open"))
)
Open(System.Func)
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.
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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Open(
@<text>
function(e) {
// event handling code
}
</text>)
)
)
Select(System.String)
Defines the handler of the Select client-side event. Triggered when a node is being selected by the user. Cancellable. When checkboxes are enabled, it is also triggered when a node is being deselected.
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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Select("select"))
)
Select(System.Func)
Defines the handler of the Select client-side event. Triggered when a node is being selected by the user. Cancellable. When checkboxes are enabled, it is also triggered when a node is being deselected.
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 DropDownTreeEventBuilder .
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events.Select(
@<text>
function(e) {
// event handling code
}
</text>)
)
)