Edit this page

Kendo.Mvc.UI.Fluent.TreeViewBindingSettingsBuilder

Defines the fluent interface for building TreeViewBindingSettingsBuilder

Methods

Enabled(System.Boolean)

Enables or disables binding.

Example (ASPX)

<%= Html.Kendo().TreeView()
.Name("TreeView")
.DataBinding(dataBinding =>
{
    dataBinding.Ajax().Select("Index", "Home").Enabled((bool)ViewData["ajax"]);
})
%>

Select(System.Web.Routing.RouteValueDictionary)

Sets the action, controller and route values

Parameters

routeValues System.Web.Routing.RouteValueDictionary

The route values of the Action method.

Example (ASPX)

<%= Html.Kendo().Grid(Model)
.Name("Grid")
.DataBinding(dataBinding =>
{
    dataBinding.Ajax().Select(MVC.Home.Index(1).GetRouteValueDictionary());
})
%>

Select(System.String,System.String,System.Web.Routing.RouteValueDictionary)

Sets the action, controller and route values for the select operation

Parameters

actionName System.String

Name of the action.

controllerName System.String

Name of the controller.

routeValues System.Web.Routing.RouteValueDictionary

The route values.

Example (ASPX)

<%= Html.Kendo().TreeView()
.Name("TreeView")
.DataBinding(dataBinding =>
{
    dataBinding.Ajax().Select("Index", "Home", new RouteValueDictionary{ {"id", 1} });
})
%>

Select(System.String,System.String,System.Object)

Sets the action, controller and route values for the select operation

Parameters

actionName System.String

Name of the action.

controllerName System.String

Name of the controller.

routeValues System.Object

The route values.

Example (ASPX)

<%= Html.Kendo().TreeView()
.Name("TreeView")
.DataBinding(dataBinding =>
{
    dataBinding.Ajax().Select("Index", "Home", new { {"id", 1} });
})
%>

Select(System.String,System.String)

Sets the action, controller and route values for the select operation

Parameters

actionName System.String

Name of the action.

controllerName System.String

Name of the controller.

Example (ASPX)

<%= Html.Kendo().TreeView()
.Name("TreeView")
.DataBinding(dataBinding =>
{
    dataBinding.Ajax().Select("Index", "Home");
})
%>

Select(System.String,System.Web.Routing.RouteValueDictionary)

Sets the route and values for the select operation

Parameters

routeName System.String

Name of the route.

routeValues System.Web.Routing.RouteValueDictionary

The route values.

Example (ASPX)

<%= Html.Kendo().TreeView()
.Name("TreeView")
.DataBinding(dataBinding =>
{
    dataBinding.Ajax().Select("Default", "Home", new RouteValueDictionary{ {"id", 1} });
})
%>

Select(System.String,System.Object)

Sets the route and values for the select operation

Parameters

routeName System.String

Name of the route.

routeValues System.Object

The route values.

Example (ASPX)

<%= Html.Kendo().TreeView()
.Name("TreeView")
.DataBinding(dataBinding =>
{
    dataBinding.Ajax().Select("Default", new {id=1});
})
%>

Select(System.String)

Sets the route name for the select operation

Parameters

routeName System.String

Name of the route.

Example (ASPX)

<%= Html.Kendo().TreeView()
.Name("TreeView")
.DataBinding(dataBinding =>
{
    dataBinding.Ajax().Select("Default");
})
%>