Kendo.Mvc.UI.Fluent.DropDownTreeCheckboxesBuilder

Defines the fluent interface for configuring child DropDownTree items.

Methods

Enabled(System.Boolean)

Enable/disable rendering of checkboxes in the dropdowntree.

Parameters

enabled System.Boolean

Whether checkboxes should be rendered.

Example (ASPX)

<%= Html.Kendo().DropDownTree()
    .Name("DropDownTree")
    .Checkboxes(config => config
        .Enabled(true)
    )
%>

CheckChildren(System.Boolean)

Enable/disable checking of child checkboxes in the dropdowntree.

Parameters

checkChildren System.Boolean

Whether checking of parent checkboxes should check child checkboxes.

Example (ASPX)

<%= Html.Kendo().DropDownTree()
    .Name("DropDownTree")
    .Checkboxes(config => config
        .CheckChildren(true)
    )
%>

Template(System.String)

Client-side template to be used for rendering the items in the dropdowntree.

Example (ASPX)

<%= Html.Kendo().DropDownTree()
    .Name("DropDownTree")
    .Checkboxes(config => config
        .Template("#= data #")
    )
%>

TemplateId(System.String)

Id of the element that holds the client-side template to be used for rendering the items in the dropdowntree.

Example (ASPX)

<%= Html.Kendo().DropDownTree()
    .Name("DropDownTree")
    .Checkboxes(config => config
        .TemplateId("widgetTemplateId")
    )
%>

Name(System.String)

The name attribute of the checkbox fields. This will correlate to the name of the action method parameter that the nodes are posted to.

Parameters

name System.String

The string that will be used in the name attribute.

Example (ASPX)

<%= Html.Kendo().DropDownTree()
    .Name("DropDownTree")
    .Checkboxes(config => config
        .Name("checkedNodes")
    )
%>