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

TreeViewBindingSettingsBuilder

Methods

Enabled(System.Boolean)

Enables or disables binding.

Parameters

value - System.Boolean

Example


             @( 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


             @( 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


             @( 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


             @( 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


             @( 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


             @( 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


             @( 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


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

In this article
Not finding the help you need?