TreeViewEventBuilder
Methods
Change(System.String)
Defines the handler of the Change client-side event. Triggered when the selection has changed (either by the user or through the select method).
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 TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.Change("onChange"))
)
Change(System.Func)
Defines the handler of the Change client-side event. Triggered when the selection has changed (either by the user or through the select method).
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 TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.Change(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
Check(System.String)
Defines the handler of the Check client-side event. Triggered after the user has checked or unchecked a checkbox. If checkChildren is true, the event is triggered after all checked states are updated. This event has been introduced in internal builds after 2014.2.828.
For more information see Check event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Check event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.Check("onCheck"))
)
Check(System.Func)
Defines the handler of the Check client-side event. Triggered after the user has checked or unchecked a checkbox. If checkChildren is true, the event is triggered after all checked states are updated. This event has been introduced in internal builds after 2014.2.828.
For more information see Check event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.Check(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
Collapse(System.String)
Defines the handler of the Collapse client-side event. Triggered before a subgroup gets collapsed. Cancellable.
For more information see Collapse event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Collapse event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.Collapse("onCollapse"))
)
Collapse(System.Func)
Defines the handler of the Collapse client-side event. Triggered before a subgroup gets collapsed. Cancellable.
For more information see Collapse event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.Collapse(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
DataBound(System.String)
Defines the handler of the DataBound client-side event. 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.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.DataBound("onDataBound"))
)
DataBound(System.Func)
Defines the handler of the DataBound client-side event. Triggered after the dataSource change event has been processed (adding/removing items);
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 TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.DataBound(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
Drag(System.String)
Defines the handler of the Drag client-side event. Triggered while a node is being dragged.
For more information see Drag event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Drag event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.Drag("onDrag"))
)
Drag(System.Func)
Defines the handler of the Drag client-side event. Triggered while a node is being dragged.
For more information see Drag event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.Drag(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
DragEnd(System.String)
Defines the handler of the DragEnd client-side event. Triggered after a node has been dropped.
For more information see DragEnd event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the DragEnd event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.DragEnd("onDragEnd"))
)
DragEnd(System.Func)
Defines the handler of the DragEnd client-side event. Triggered after a node has been dropped.
For more information see DragEnd event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.DragEnd(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
DragStart(System.String)
Defines the handler of the DragStart client-side event. Triggered before the dragging of a node starts.
For more information see DragStart event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the DragStart event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.DragStart("onDragStart"))
)
DragStart(System.Func)
Defines the handler of the DragStart client-side event. Triggered before the dragging of a node starts.
For more information see DragStart event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.DragStart(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
Drop(System.String)
Defines the handler of the Drop client-side event. Triggered when a node is being dropped.
For more information see Drop event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Drop event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.Drop("onDrop"))
)
Drop(System.Func)
Defines the handler of the Drop client-side event. Triggered when a node is being dropped.
For more information see Drop event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.Drop(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
Expand(System.String)
Defines the handler of the Expand client-side event. Triggered before a subgroup gets expanded.
For more information see Expand event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Expand event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.Expand("onExpand"))
)
Expand(System.Func)
Defines the handler of the Expand client-side event. Triggered before a subgroup gets expanded.
For more information see Expand event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.Expand(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
LoadCompleted(System.String)
Defines the handler of the LoadCompleted client-side event. This event triggers only when loadOnDemand is set to false - it indicates that all nodes that need to be loaded are ready and present as data items in the DataSource of the TreeView.
For more information see LoadCompleted event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the LoadCompleted event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.LoadCompleted("onLoadCompleted"))
)
LoadCompleted(System.Func)
Defines the handler of the LoadCompleted client-side event. This event triggers only when loadOnDemand is set to false - it indicates that all nodes that need to be loaded are ready and present as data items in the DataSource of the TreeView.
For more information see LoadCompleted event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.LoadCompleted(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
KendoKeydown(System.String)
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the TreeView is focused.
For more information see KendoKeydown event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the KendoKeydown event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.KendoKeydown("onKendoKeydown"))
)
KendoKeydown(System.Func)
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the TreeView is focused.
For more information see KendoKeydown event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.KendoKeydown(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
Navigate(System.String)
Defines the handler of the Navigate client-side event. Triggered when the user moves the focus on another node
For more information see Navigate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Navigate event.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.Navigate("onNavigate"))
)
Navigate(System.Func)
Defines the handler of the Navigate client-side event. Triggered when the user moves the focus on another node
For more information see Navigate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.Navigate(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)
Select(System.String)
Defines the handler of the Select client-side event. 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.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("treeview")
.Events(e => e.Select("onSelect"))
)
Select(System.Func)
Defines the handler of the Select client-side event. 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.
RETURNS
Returns the current instance of TreeViewEventBuilder .
Example
@( Html.Kendo().TreeView()
.Name("TreeView")
.Events(events => events.Select(
@<text>
function(e) {
// event handling code
}
</text>
))
.Render();
)