Defines the fluent interface for configuring child TreeView items.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class TreeViewCheckboxesBuilder
Inheritance: objectTreeViewCheckboxesBuilder
Inherited Members
Constructors
Initializes a new instance of the TreeViewCheckboxesBuilder class.
public TreeViewCheckboxesBuilder(TreeViewCheckboxesSettings settings)
The checkbox settings.
Methods
Indicates whether the checkboxes of the child items must be checked when the checkbox of a parent item is checked.
public virtual TreeViewCheckboxesBuilder CheckChildren(bool checkChildren)
A boolean value that enables or disables the CheckChildren option.
Returns:Enables or disables the rendering of the checkboxes in the TreeView.
public virtual TreeViewCheckboxesBuilder Enabled(bool enabled)
A boolean value that toggles the rendering of the checkboxes.
Returns:Sets the "name" attribute of the checkbox inputs. The defined name will be posted to the server.
public TreeViewCheckboxesBuilder Name(string name)
The string that will be set as a "name" attribute.
Returns:Defines the template that renders the checkboxes in the TreeView. The available fields in the template are:
- item: The data item of the given node.
- treeview: The TreeView options.
Defines the template that renders the checkboxes in the TreeView. The available fields in the template are:
- item: The data item of the given node.
- treeview: The TreeView options.
public TreeViewCheckboxesBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the checkbox template.
Returns:Defines the template that renders the checkboxes in the TreeView. The available fields in the template are:
- item: The data item of the given node.
- treeview: The TreeView options.
public TreeViewCheckboxesBuilder TemplateHandler(string template)
The JavaScript function that will return the checkbox template.
Returns:Defines the template that renders the checkboxes in the TreeView. The available fields in the template are:
- item: The data item of the given node.
- treeview: The TreeView options.
public TreeViewCheckboxesBuilder TemplateId(string templateId)
The "id" attribute of the external Kendo UI Template.
Returns:Defines the template that renders the checkboxes in the TreeView. The available fields in the template are:
- item: The data item of the given node.
- treeview: The TreeView options.
public TreeViewCheckboxesBuilder TemplateView(MvcHtmlString template)
The Razor View that contains the checkbox template.
Returns: