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


When you bind the DropDownTree through the DataSource() configuration option, each item can acquire specific properties.

The following JSON example demonstrates how to pass item properties to the DropDownTree. You can configure the text, value, imageUrl, spriteCssClass, and url fields through the DataTextField, DataValueField, DataImageUrlField, DataSpriteCssClassField, and DataUrlField options respectively.

    "text":"Item text",


    // If specified, renders the item as a link (<a href=""></a>)

    // Renders a <img class="k-image" src="/images/icon.png" />

    // Renders a <span class="k-sprite icon save" />
    "spriteCssClass":"icon save",

    // Specifies whether the text of the node in the treeview embedded in the DropDownTree should be encoded or not.
    // Useful when rendering node-specific HTML.

    // Specifies whether the item is initially expanded.
    // Applicable when the item has child nodes.

    // Specifies whether the item checkbox is initially checked.
    // Applicable for items with checkboxes using the default checkbox template.

    // Specifies whether the item is initially selected.

    // Indicates the sub-items of the item.
        "text":"Subitem text"

See Also

In this article