DropDownTreeBuilder
Defines the fluent interface for configuring the DropDownTree component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DropDownTreeBuilder : WidgetBuilderBase<DropDownTree, DropDownTreeBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<DropDownTree, DropDownTreeBuilder>DropDownTreeBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DropDownTreeBuilder class.
public DropDownTreeBuilder(DropDownTree component)
The component.
Methods
Specifies the adaptive rendering of the component.
public DropDownTreeBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode.
Returns:Allows customization of the subtitle's text in the adaptive view of the component.
public DropDownTreeBuilder AdaptiveSubtitle(string value)
The value that configures the adaptivesubtitle.
Returns:Allows customization of the title's text in the adaptive view of the component.
public DropDownTreeBuilder AdaptiveTitle(string value)
The value that configures the adaptivetitle.
Returns:Configures the animation effects of the widget.
public DropDownTreeBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action which configures the animation effects.
Returns:Use to enable or disable animation of the DropDownTree.
public DropDownTreeBuilder Animation(bool enable)
The boolean value.
Returns:Controls whether to bind the widget to the DataSource on initialization.
public DropDownTreeBuilder AutoBind(bool autoBind)
The value for autoBind
Returns:Controls whether to close the popup when item is selected or checked.
public DropDownTreeBuilder AutoClose(bool autoClose)
The value for AutoClose
Returns: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 autoWidth)
The value for AutoWidth
Returns: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: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:Binds the DropDownTree to a sitemap
public DropDownTreeBuilder BindTo(string viewDataKey, Action<DropDownTreeItem, SiteMapNode> siteMapAction)
The view data key.
siteMapActionAction<DropDownTreeItem, SiteMapNode>The action to configure the item.
Returns:Binds the DropDownTree to a sitemap.
public DropDownTreeBuilder BindTo(string viewDataKey)
The view data key.
Returns: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: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 checkAll)
The value for CheckAll
Returns: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:Defines the template used to render the "checkAll" label. By default, the component displays a "span" element with text "Check all".
public DropDownTreeBuilder CheckAllTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the "checkAll" label template.
Returns:Specifies a JavaScript function name. The value returned by thе function will bе used to render the checkAll label of the dropdowntree.
public DropDownTreeBuilder CheckAllTemplateHandler(string value)
The name of the JavaScript function that will handle the template evaluation.
Returns: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:The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
public DropDownTreeBuilder CheckAllTemplateView(MvcHtmlString templateView)
The view that contains CheckAllTemplate
Returns:Configures rendering of checkboxes in the dropdowntree.
public DropDownTreeBuilder Checkboxes(Action<DropDownTreeCheckboxesBuilder> configure)
Builder of the dropdowntree checkboxes configuration.
Returns:Enable/disable rendering of checkboxes in the dropdowntree.
public DropDownTreeBuilder Checkboxes(bool enabled)
Whether checkboxes should be rendered.
Returns: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:Sets the field of the data item that provides the image URL of the DropDownTree nodes.
public DropDownTreeBuilder DataImageUrlField(string value)
The value that configures the dataimageurlfield.
Returns:Configure the DataSource of the component
public DropDownTreeBuilder DataSource(Action<HierarchicalDataSourceBuilder<object>> configurator)
The action that configures the DataSource.
Returns:Accepts the Name of the external DataSource component that is to be used for data binding
public DropDownTreeBuilder DataSource(string dataSourceId)
The name of the external DataSource.
Returns: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 that configures the dataspritecssclassfield.
Returns: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 that configures the datatextfield.
Returns: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 that configures the datatextfield.
Returns:Sets the field of the data item that provides the link URL of the nodes.
public DropDownTreeBuilder DataUrlField(string value)
The value that configures the dataurlfield.
Returns: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:Specifies the delay in milliseconds after which the DropDownTree will start filtering dataSource.
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.
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:Configures the client-side events.
public DropDownTreeBuilder Events(Action<DropDownTreeEventBuilder> clientEventsAction)
The client events action.
Returns:Sets a value controlling how the color is applied to the DropDownTree.
public DropDownTreeBuilder FillMode(FillMode value)
The value for FillMode
Returns:The filtering method used to determine the suggestions for the current value. Filtration is turned off by default.
public DropDownTreeBuilder Filter(string value)
The value for Filter
Returns: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: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:Defines the template that renders the footer of the DropDownTree.
public DropDownTreeBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the footer.
Returns:Specifies a JavaScript function name. The value returned by thе function will bе used to render the footer of the dropdowntree.
public DropDownTreeBuilder FooterTemplateHandler(string value)
The name of the JavaScript function that will handle the template evaluation.
Returns: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: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(MvcHtmlString templateView)
The view that contains FooterTemplate
Returns: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: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 header of the popup element.
Returns:Specifies a JavaScript function name. The value returned by thе function will bе used to render the header content in the dropdowntree.
public DropDownTreeBuilder HeaderTemplateHandler(string value)
The name of the JavaScript function that will handle the template evaluation.
Returns: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:Specifies a static HTML content, which will be rendered as a header of the popup element.
public DropDownTreeBuilder HeaderTemplateView(MvcHtmlString templateView)
The view that contains the HeaderTemplate
Returns:The height of the suggestion popup 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: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:Defines the items in the DropDownTree through the DropDownTreeItemFactory
public DropDownTreeBuilder Items(Action<DropDownTreeItemFactory> addAction)
The add action.
Returns:Uses the DropDownTreeLabelSettingsBuilder Action configurator to add 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)
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.
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 configurator for the loadondemand setting.
Returns: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:The DropDownTreeMessagesSettingsBuilder that configures the messages displayed in the widget. Use it to customize or localize the messages.
public DropDownTreeBuilder Messages(Action<DropDownTreeMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns: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(int value)
The value for MinLength
Returns: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:Defines the template that renders the "no data" template, which will be displayed if no results are found or the underlying DataSource is empty. The template will be evaluated on every component's data bound.
public DropDownTreeBuilder NoDataTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the "no data" template.
Returns:Specifies a JavaScript function name. The value returned by thе function will bе used to render the message when no data loaded in the dropdowntree.
public DropDownTreeBuilder NoDataTemplateHandler(string value)
The name of the JavaScript function that will handle the template evaluation.
Returns: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: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(MvcHtmlString templateView)
The view that contains NoDataTemplate
Returns:The hint displayed by the widget when it is empty. Not set by default.
public DropDownTreeBuilder Placeholder(string value)
The value for Placeholder
Returns:Configures the PopupSettingsBuilder of the widget.
public DropDownTreeBuilder Popup(Action<PopupSettingsBuilder> popupAction)
The PopupSettingsBuilder Action responsible for the configuration of the Popup.
Returns:Sets the border radius of the DropDownTree.
public DropDownTreeBuilder Rounded(Rounded? value)
The value for Rounded
Returns:Sets the size of the component with a parameter of type ComponentSize
public DropDownTreeBuilder Size(ComponentSize? value)
The value for Size
Returns:Represents available tag modes of DropDownTree. Available configurations are DropDownTreeTagMode.Single and DropDownTreeTagMode.Multiple
public DropDownTreeBuilder TagMode(TagMode value)
The value for TagMode
Returns:Template to be used for rendering of the items in the dropdowntree.
Defines the template that renders each DropDownTree item.
public DropDownTreeBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures each item's template.
Returns:Specifies a JavaScript function name. The value returned by thе function will bе used to render the items in the dropdowntree.
public DropDownTreeBuilder TemplateHandler(string value)
The name of the JavaScript function that will handle the template evaluation.
Returns:Id of the template element to be used for rendering the items in the dropdowntree.
public DropDownTreeBuilder TemplateId(string templateId)
The ID of the template element for TemplateId
Returns:A Partial View to be used for the rendering of the items in the dropdowntree.
public DropDownTreeBuilder TemplateView(MvcHtmlString templateView)
The view that contains the items template
Returns:The text of the widget used when the autoBind is set to false.
Define the value of the widget. It accepts an 'Array' when multiple selection is enabled via checkboxes property.
public DropDownTreeBuilder Value(IEnumerable value)
The value array for Value
Returns:Define the value of the widget. It accepts 'String' when it is in single selection mode.
public DropDownTreeBuilder Value(string value)
The value string for Value
Returns: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:The template used to render the selected tags.
public DropDownTreeBuilder ValueTemplate(string value)
The value for ValueTemplate
Returns:Defines the template used to render the selected value of the DropDownTree.
public DropDownTreeBuilder ValueTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the selected value template.
Returns:Specifies a JavaScript function name. The value returned by thе function will bе used to render the selected value of the dropdowntree.
public DropDownTreeBuilder ValueTemplateHandler(string value)
The name of the JavaScript function that will handle the template evaluation.
Returns:The template used to render the selected tags.
public DropDownTreeBuilder ValueTemplateId(string templateId)
The ID of the template element for ValueTemplate
Returns:The template used to render the selected tags.
public DropDownTreeBuilder ValueTemplateView(MvcHtmlString templateView)
The view that contains the ValueTemplate
Returns: