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:Returns the current TreeViewItemBuilder instance.
Define when the item will be expanded on intial render.
public TreeViewItemBuilder Expanded(bool value)
If true the item will be expanded.
Returns:Returns the current TreeViewItemBuilder instance.
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:Returns the current TreeViewItemBuilder instance.
Sets the icon of the treeview item as an icon descriptor.
public TreeViewItemBuilder Icon(Action<TreeViewItemIconSettingsBuilder> configurator)
The configurator for the icon setting.
Returns:Returns the current TreeViewItemBuilder instance.
Sets the icon of the treeview item.
public TreeViewItemBuilder Icon(string value)
The name of the icon.
Returns:Returns the current TreeViewItemBuilder instance.
Sets the data-id attribute of the item.
public TreeViewItemBuilder Id(string id)
The id.
Returns:Returns the current TreeViewItemBuilder instance.
Configures the child items of a TreeViewItem.
public virtual TreeViewItemBuilder Items(Action<TreeViewItemFactory> addAction)
The add action.
Returns:Returns the current TreeViewItemBuilder instance.