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 DropDownTreeItem.
viewContextViewContextThe ViewContext
Methods
Specify whether the item should be initially checked.
public DropDownTreeItemBuilder Checked(bool value)
If true, the item will be checked.
Returns:Returns the current instance of DropDownTreeItemBuilder to allow method chaining.
Define when the item will be expanded on intial render.
public DropDownTreeItemBuilder Expanded(bool value)
If true the item will be expanded.
Returns:Returns the current instance of DropDownTreeItemBuilder to allow method chaining.
Sets the expand mode of the treeview item.
public DropDownTreeItemBuilder HasChildren(bool value)
If true then item will be loaded on demand from client side, if the treeview DataSource is properly configured.
Returns:Returns the current instance of DropDownTreeItemBuilder to allow method chaining.
Sets the id of the item.
public DropDownTreeItemBuilder Id(string id)
The id.
Returns:Returns the current instance of DropDownTreeItemBuilder to allow method chaining.
Configures the child items of a DropDownTreeItem.
public virtual DropDownTreeItemBuilder Items(Action<DropDownTreeItemFactory> addAction)
The add action.
Returns:Returns the current instance of DropDownTreeItemBuilder to allow method chaining.
Sets the value of the item.
public DropDownTreeItemBuilder Value(string value)
The value.
Returns:Returns the current instance of DropDownTreeItemBuilder to allow method chaining.