DropDownTreeBuilder
Defines the fluent API for configuring the Kendo UI DropDownTree
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DropDownTreeBuilder : MvvmWidgetBuilderBase<DropDownTree, DropDownTreeBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<DropDownTree, DropDownTreeBuilder>MvvmWidgetBuilderBase<DropDownTree, DropDownTreeBuilder>DropDownTreeBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DropDownTreeBuilder class.
Methods
Specifies the adaptive rendering of the component.
public DropDownTreeBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:Returns the current DropDownTreeBuilder instance.
Allows customization of the subtitle's text in the adaptive view of the component.
public DropDownTreeBuilder AdaptiveSubtitle(string value)
The value for AdaptiveSubtitle
Returns:Returns the current DropDownTreeBuilder instance.
Allows customization of the title's text in the adaptive view of the component.
public DropDownTreeBuilder AdaptiveTitle(string value)
The value for AdaptiveTitle
Returns:Returns the current DropDownTreeBuilder instance.
Configures the animation effects of the widget.
public DropDownTreeBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action which configures the animation effects.
Returns:Returns the current instance of DropDownTreeBuilder to allow method chaining.
Use to enable or disable animation of the popup element.
public DropDownTreeBuilder Animation(bool enable)
The boolean value.
Returns:Returns the current instance of DropDownTreeBuilder to allow method chaining.
Controls whether to bind the widget to the data source on initialization.
public DropDownTreeBuilder AutoBind(bool value)
The value for AutoBind
Returns:Returns the current DropDownTreeBuilder instance.
Controls whether to close the popup when item is selected or checked.
public DropDownTreeBuilder AutoClose(bool value)
The value for AutoClose
Returns:Returns the current DropDownTreeBuilder instance.
If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.
public DropDownTreeBuilder AutoWidth(bool value)
The value for AutoWidth
Returns:Returns the current DropDownTreeBuilder instance.
Binds the DropDownTree to a list of objects. The DropDownTree will create a hierarchy of items using the specified mappings.
public DropDownTreeBuilder BindTo(IEnumerable dataSource, Action<NavigationBindingFactory<DropDownTreeItem>> factoryAction)
The data source.
factoryActionAction<NavigationBindingFactory<DropDownTreeItem>>The action which will configure the mappings
Returns:Returns the current instance of DropDownTreeBuilder to allow method chaining.
Binds the DropDownTree to a list of items. Use if a hierarchy of items is being sent from the controller; to bind the DropDownTree declaratively, use the Items() method.
public DropDownTreeBuilder BindTo(IEnumerable<DropDownTreeItemModel> items)
The list of items
Returns:Returns the current instance of DropDownTreeBuilder to allow method chaining.
Binds the DropDownTree to a list of objects. The DropDownTree will be "flat" which means a DropDownTree item will be created for every item in the data source.
public DropDownTreeBuilder BindTo<T>(IEnumerable<T> dataSource, Action<DropDownTreeItem, T> itemDataBound)
The data source.
itemDataBoundAction<DropDownTreeItem, T>The action executed for every data bound item.
Returns:Returns the current instance of DropDownTreeBuilder to allow method chaining.
When this options is set to true and checkboxes are enabled, a tristate checkbox appears above the embedded treeview. Clicking that checkbox will check or uncheck all the loaded enabled items of the treeview.
When this options is set to true and checkboxes are enabled, a tristate checkbox appears above the embedded treeview. Clicking that checkbox will check or uncheck all the loaded enabled items of the treeview.
public DropDownTreeBuilder CheckAll(bool value)
The value for CheckAll
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
public DropDownTreeBuilder CheckAllTemplate(string value)
The value for CheckAllTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
public DropDownTreeBuilder CheckAllTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the checkalltemplate.
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
public DropDownTreeBuilder CheckAllTemplateHandler(string templateHandler)
The handler that returs the template for CheckAllTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
public DropDownTreeBuilder CheckAllTemplateId(string templateId)
The ID of the template element for CheckAllTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
public DropDownTreeBuilder CheckAllTemplateView(IHtmlContent templateView)
The view that contains the template for CheckAllTemplate
Returns:Returns the current DropDownTreeBuilder instance.
If true or an object, renders checkboxes beside each node. In this case the widget value should be an array.
public DropDownTreeBuilder Checkboxes(Action<DropDownTreeCheckboxesSettingsBuilder> configurator)
The DropDownTreeCheckboxesSettingsBuilder for the checkboxes setting.
Returns:Returns the current instance of DropDownTreeBuilder .
If true or an object, renders checkboxes beside each node. In this case the widget value should be an array.
public DropDownTreeBuilder Checkboxes(bool enabled)
Enables or disables the checkboxes option.
Returns:Returns the current instance of DropDownTreeCheckboxesSettingsBuilder .
Unless this option is set to false, a button will appear when hovering the widget. Clicking that button will reset the widget's value and will trigger the change event.
public DropDownTreeBuilder ClearButton(bool value)
The value for ClearButton
Returns:Returns the current DropDownTreeBuilder instance.
Sets the field of the data item that provides the image URL of the DropDownTree nodes.
public DropDownTreeBuilder DataImageUrlField(string value)
The value for DataImageUrlField
Returns:Returns the current DropDownTreeBuilder instance.
Configure the DataSource of the component
public DropDownTreeBuilder DataSource(Action<HierarchicalDataSourceBuilder<object>> configurator)
The action that configures the DataSource(Action<HierarchicalDataSourceBuilder<object>>).
Returns:Returns the current instance of DropDownTreeBuilder to allow method chaining.
Accepts the Name of the external DataSource component that is to be used for data binding
public DropDownTreeBuilder DataSource(string dataSourceId)
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Sets the field of the data item that provides the sprite CSS class of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.
public DropDownTreeBuilder DataSpriteCssClassField(string value)
The value for DataSpriteCssClassField
Returns:Returns the current DropDownTreeBuilder instance.
Sets the field of the data item that provides the text content of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.
public DropDownTreeBuilder DataTextField(params string[] value)
The value for DataTextField
Returns:Returns the current instance of DropDownTreeBuilder to allow method chaining.
Sets the field of the data item that provides the text content of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.
public DropDownTreeBuilder DataTextField(string value)
The value for DataTextField
Returns:Returns the current DropDownTreeBuilder instance.
Sets the field of the data item that provides the link URL of the nodes.
public DropDownTreeBuilder DataUrlField(string value)
The value for DataUrlField
Returns:Returns the current DropDownTreeBuilder instance.
The field of the data item that provides the value of the widget. If an array, each level uses the field that is at the same index in the array, or the last item in the array.
public DropDownTreeBuilder DataValueField(string value)
The value for DataValueField
Returns:Returns the current DropDownTreeBuilder instance.
Specifies the delay in milliseconds after which the DropDownTree will start filtering dataSource.
public DropDownTreeBuilder Delay(double value)
The value for Delay
Returns:Returns the current DropDownTreeBuilder instance.
If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
public DropDownTreeBuilder Enable(bool value)
The value for Enable
Returns:Returns the current DropDownTreeBuilder instance.
If set to true the widget will not show all items when the text of the search input cleared. By default, the widget shows all items when the text of the search input is cleared. Works in conjunction with minLength.
public DropDownTreeBuilder EnforceMinLength()
Returns the current DropDownTreeBuilder instance.
If set to true the widget will not show all items when the text of the search input cleared. By default, the widget shows all items when the text of the search input is cleared. Works in conjunction with minLength.
public DropDownTreeBuilder EnforceMinLength(bool value)
The value for EnforceMinLength
Returns:Returns the current DropDownTreeBuilder instance.
Configures the client-side events.
public DropDownTreeBuilder Events(Action<DropDownTreeEventBuilder> configurator)
The client events action.
Returns:Returns the current DropDownTreeBuilder instance.
Sets a value controlling how the color is applied.
public DropDownTreeBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current DropDownTreeBuilder instance.
The filtering method used to determine the suggestions for the current value. Filtration is turned off by default.
public DropDownTreeBuilder Filter(FilterType value)
The value for Filter
Returns:Returns the current DropDownTreeBuilder instance.
When filtering is enabled, allows aria-label to be defined for the filter input element.
public DropDownTreeBuilder FilterLabel(string value)
The value for FilterLabel
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
public DropDownTreeBuilder FooterTemplate(string value)
The value for FooterTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
public DropDownTreeBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the footertemplate.
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
public DropDownTreeBuilder FooterTemplateHandler(string templateHandler)
The handler that returs the template for FooterTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
public DropDownTreeBuilder FooterTemplateId(string templateId)
The ID of the template element for FooterTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
public DropDownTreeBuilder FooterTemplateView(IHtmlContent templateView)
The view that contains the template for FooterTemplate
Returns:Returns the current DropDownTreeBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public DropDownTreeBuilder HeaderTemplate(string value)
The value for HeaderTemplate
Returns:Returns the current DropDownTreeBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public DropDownTreeBuilder HeaderTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the headertemplate.
Returns:Returns the current DropDownTreeBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public DropDownTreeBuilder HeaderTemplateHandler(string templateHandler)
The handler that returs the template for HeaderTemplate
Returns:Returns the current DropDownTreeBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public DropDownTreeBuilder HeaderTemplateId(string templateId)
The ID of the template element for HeaderTemplate
Returns:Returns the current DropDownTreeBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public DropDownTreeBuilder HeaderTemplateView(IHtmlContent templateView)
The view that contains the template for HeaderTemplate
Returns:Returns the current DropDownTreeBuilder instance.
Sets max-height of the embedded treeview in pixels. The default value is 200 pixels. If set to "Auto" the height of the popup will depend on the height of the treeview.
public DropDownTreeBuilder Height(string value)
The value for Height
Returns:Returns the current DropDownTreeBuilder instance.
If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
public DropDownTreeBuilder IgnoreCase(bool value)
The value for IgnoreCase
Returns:Returns the current DropDownTreeBuilder instance.
Defines the items in the DropDownTree
public DropDownTreeBuilder Items(Action<DropDownTreeItemFactory> addAction)
The add action.
Returns:Returns the current instance of DropDownTreeBuilder to allow method chaining.
Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public DropDownTreeBuilder Label(Action<DropDownTreeLabelSettingsBuilder> configurator)
The DropDownTreeLabelSettingsBuilder for the label setting.
Returns:Returns the current instance of DropDownTreeBuilder .
Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public DropDownTreeBuilder Label(string label)
The label.
Returns:Returns the current instance of DropDownTreeBuilder .
Indicates whether the child DataSources should be fetched lazily when parent groups get expanded. Setting this to true causes loading the child DataSources when expanding the parent node.
public DropDownTreeBuilder LoadOnDemand()
Returns the current instance of DropDownTreeLoadOnDemandSettingsBuilder .
Indicates whether the child DataSources should be fetched lazily when parent groups get expanded. Setting this to true causes loading the child DataSources when expanding the parent node.
public DropDownTreeBuilder LoadOnDemand(Action<DropDownTreeLoadOnDemandSettingsBuilder> configurator)
The DropDownTreeLoadOnDemandSettingsBuilder for the loadondemand setting.
Returns:Returns the current instance of DropDownTreeBuilder .
Indicates whether the child DataSources should be fetched lazily when parent groups get expanded. Setting this to true causes loading the child DataSources when expanding the parent node.
public DropDownTreeBuilder LoadOnDemand(bool enabled)
Enables or disables the loadondemand option.
Returns:Returns the current instance of DropDownTreeLoadOnDemandSettingsBuilder .
The text messages displayed in the widget. Use it to customize or localize the messages.
public DropDownTreeBuilder Messages(Action<DropDownTreeMessagesSettingsBuilder> configurator)
The DropDownTreeMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of DropDownTreeBuilder .
The minimum number of characters the user must type before a search is performed. Set to a higher value if the search could match a lot of items.
public DropDownTreeBuilder MinLength(double value)
The value for MinLength
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
public DropDownTreeBuilder NoDataTemplate(string value)
The value for NoDataTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
public DropDownTreeBuilder NoDataTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the nodatatemplate.
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
public DropDownTreeBuilder NoDataTemplateHandler(string templateHandler)
The handler that returs the template for NoDataTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
public DropDownTreeBuilder NoDataTemplateId(string templateId)
The ID of the template element for NoDataTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
public DropDownTreeBuilder NoDataTemplateView(IHtmlContent templateView)
The view that contains the template for NoDataTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The hint displayed by the widget when it is empty. Not set by default.
public DropDownTreeBuilder Placeholder(string value)
The value for Placeholder
Returns:Returns the current DropDownTreeBuilder instance.
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
public DropDownTreeBuilder Popup(Action<DropDownTreePopupSettingsBuilder> configurator)
The DropDownTreePopupSettingsBuilder for the popup setting.
Returns:Returns the current instance of DropDownTreeBuilder .
Sets a value controlling the border radius.
public DropDownTreeBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current DropDownTreeBuilder instance.
Sets the size of the component.
public DropDownTreeBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current DropDownTreeBuilder instance.
Represents available tag modes of DropDownTree.
public DropDownTreeBuilder TagMode(DropDownTreeTagMode value)
The value for TagMode
Returns:Returns the current DropDownTreeBuilder instance.
Template for rendering each node.
public DropDownTreeBuilder Template(string value)
The value for Template
Returns:Returns the current DropDownTreeBuilder instance.
Template for rendering each node.
public DropDownTreeBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current DropDownTreeBuilder instance.
Template for rendering each node.
public DropDownTreeBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current DropDownTreeBuilder instance.
Template for rendering each node.
public DropDownTreeBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current DropDownTreeBuilder instance.
Template for rendering each node.
public DropDownTreeBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current DropDownTreeBuilder instance.
The text of the widget used when the autoBind is set to false.
public DropDownTreeBuilder Text(string value)
The value for Text
Returns:Returns the current DropDownTreeBuilder instance.
Sets the value of the widget.
public DropDownTreeBuilder Value(IEnumerable value)
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Define the value of the widget. It accepts 'String' when it is in single selection mode and 'Array' when multiple selection is enabled via checkboxes property.
public DropDownTreeBuilder Value(string value)
The value for Value
Returns:Returns the current DropDownTreeBuilder instance.
Specifies the value binding behavior for the widget. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.
public DropDownTreeBuilder ValuePrimitive()
Returns the current DropDownTreeBuilder instance.
Specifies the value binding behavior for the widget. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.
public DropDownTreeBuilder ValuePrimitive(bool value)
The value for ValuePrimitive
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the value and the or the selected tags.
public DropDownTreeBuilder ValueTemplate(string value)
The value for ValueTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the value and the or the selected tags.
public DropDownTreeBuilder ValueTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the valuetemplate.
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the value and the or the selected tags.
public DropDownTreeBuilder ValueTemplateHandler(string templateHandler)
The handler that returs the template for ValueTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the value and the or the selected tags.
public DropDownTreeBuilder ValueTemplateId(string templateId)
The ID of the template element for ValueTemplate
Returns:Returns the current DropDownTreeBuilder instance.
The template used to render the value and the or the selected tags.
public DropDownTreeBuilder ValueTemplateView(IHtmlContent templateView)
The view that contains the template for ValueTemplate
Returns:Returns the current DropDownTreeBuilder instance.