Defines the fluent interface for configuring child DropDownTree items.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DropDownTreeItemBuilder : NavigationItemBuilder<DropDownTreeItem, DropDownTreeItemBuilder>
Inheritance: objectNavigationItemBuilder<DropDownTreeItem, DropDownTreeItemBuilder>DropDownTreeItemBuilder
Inherited Members
Constructors
Initializes a new instance of the DropDownTreeItemBuilder class.
public DropDownTreeItemBuilder(DropDownTreeItem item, ViewContext viewContext)
The item.
viewContextViewContextThe view context.
Methods
Specify whether the item should be initially checked.
public DropDownTreeItemBuilder Checked(bool value)
If true, the item will be checked.
Returns:Define when the item will be expanded on intial render.
public DropDownTreeItemBuilder Expanded(bool value)
If true the item will be expanded.
Returns:Sets the expand mode of the dropdowntree item.
public DropDownTreeItemBuilder HasChildren(bool value)
If true then item will be loaded on demand from client side, if the dropdowntree DataSource is properly configured.
Returns:Sets the id of the item.
Configures the child items of a DropDownTreeItem.
public virtual DropDownTreeItemBuilder Items(Action<DropDownTreeItemFactory> addAction)
The add action.
Returns:Sets the value of the item.