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