MultiSelectBuilder
Defines the fluent API for configuring the Kendo UI MultiSelect
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MultiSelectBuilder : MvvmWidgetBuilderBase<MultiSelect, MultiSelectBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<MultiSelect, MultiSelectBuilder>MvvmWidgetBuilderBase<MultiSelect, MultiSelectBuilder>MultiSelectBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the MultiSelectBuilder class.
Methods
Specifies the adaptive rendering of the component.
public MultiSelectBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:Returns the current MultiSelectBuilder instance.
Allows customization of the subtitle's text in the adaptive view of the component.
public MultiSelectBuilder AdaptiveSubtitle(string value)
The value for AdaptiveSubtitle
Returns:Returns the current MultiSelectBuilder instance.
Allows customization of the title's text in the adaptive view of the component.
public MultiSelectBuilder AdaptiveTitle(string value)
The value for AdaptiveTitle
Returns:Returns the current MultiSelectBuilder instance.
Configures the animation effects of the widget.
public MultiSelectBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action which configures the animation effects.
Returns:Returns the current MultiSelectBuilder instance.
Use to enable or disable animation of the popup element.
public MultiSelectBuilder Animation(bool enable)
The boolean value.
Returns:Returns the current MultiSelectBuilder instance.
Controls whether to bind the widget to the data source on initialization.
public MultiSelectBuilder AutoBind(bool value)
The value for AutoBind
Returns:Returns the current MultiSelectBuilder instance.
Controls whether to close the widget suggestion list on item selection.
public MultiSelectBuilder AutoClose(bool value)
The value for AutoClose
Returns:Returns the current MultiSelectBuilder instance.
If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.
public MultiSelectBuilder AutoWidth(bool value)
The value for AutoWidth
Returns:Returns the current MultiSelectBuilder instance.
Binds the MultiSelect to an IEnumerable list.
public MultiSelectBuilder BindTo(IEnumerable data)
The data source.
Returns:Returns the current MultiSelectBuilder instance.
Binds the MultiSelect to a list of SelectListItem.
public MultiSelectBuilder BindTo(IEnumerable<SelectListItem> dataSource)
The data source.
Returns:Returns the current MultiSelectBuilder instance.
When set to true, renders a checkbox next to each item in the dropdown list. Works in conjunction with the selectAll option to provide a fully checkbox-driven multi-selection experience.
When set to true, renders a checkbox next to each item in the dropdown list. Works in conjunction with the selectAll option to provide a fully checkbox-driven multi-selection experience.
public MultiSelectBuilder Checkboxes(bool value)
The value for Checkboxes
Returns:Returns the current MultiSelectBuilder instance.
Unless this options 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 MultiSelectBuilder ClearButton(bool value)
The value for ClearButton
Returns:Returns the current MultiSelectBuilder instance.
Sets the data source configuration of the MultiSelect.
public MultiSelectBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The lambda which configures the data source
Returns:The id of the external data source configuration for the MultiSelect.
public MultiSelectBuilder DataSource(string dataSourceId)
The id of the external data source
Returns:The field of the data item that provides the text content of the list items. The widget will filter the data source based on this field.
public MultiSelectBuilder DataTextField(string value)
The value for DataTextField
Returns:Returns the current MultiSelectBuilder instance.
The field of the data item that provides the value of the widget.
public MultiSelectBuilder DataValueField(string value)
The value for DataValueField
Returns:Returns the current MultiSelectBuilder instance.
Specifies the delay in milliseconds after which the MultiSelect will start filtering dataSource.
public MultiSelectBuilder Delay(double value)
The value for Delay
Returns:Returns the current MultiSelectBuilder instance.
Configures MultiSelect to render a down arrow that opens and closes its popup.
Configures MultiSelect to render a down arrow that opens and closes its popup.
public MultiSelectBuilder DownArrow(bool value)
The value for DownArrow
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder Enable(bool value)
The value for Enable
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder EnforceMinLength()
Returns the current MultiSelectBuilder 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 MultiSelectBuilder EnforceMinLength(bool value)
The value for EnforceMinLength
Returns:Returns the current MultiSelectBuilder instance.
Configures the client-side events.
public MultiSelectBuilder Events(Action<MultiSelectEventBuilder> configurator)
The client events action.
Returns:Returns the current MultiSelectBuilder instance.
Sets a value controlling how the color is applied.
public MultiSelectBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current MultiSelectBuilder instance.
The filtering method used to determine the suggestions for the current value.
public MultiSelectBuilder Filter(FilterType value)
The value for Filter
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiSelectBuilder FixedGroupTemplate(string value)
The value for FixedGroupTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiSelectBuilder FixedGroupTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the fixedgrouptemplate.
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiSelectBuilder FixedGroupTemplateHandler(string templateHandler)
The handler that returs the template for FixedGroupTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiSelectBuilder FixedGroupTemplateId(string templateId)
The ID of the template element for FixedGroupTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiSelectBuilder FixedGroupTemplateView(IHtmlContent templateView)
The view that contains the template for FixedGroupTemplate
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder FooterTemplate(string value)
The value for FooterTemplate
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the footertemplate.
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder FooterTemplateHandler(string templateHandler)
The handler that returs the template for FooterTemplate
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder FooterTemplateId(string templateId)
The ID of the template element for FooterTemplate
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder FooterTemplateView(IHtmlContent templateView)
The view that contains the template for FooterTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiSelectBuilder GroupTemplate(string value)
The value for GroupTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiSelectBuilder GroupTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the grouptemplate.
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiSelectBuilder GroupTemplateHandler(string templateHandler)
The handler that returs the template for GroupTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiSelectBuilder GroupTemplateId(string templateId)
The ID of the template element for GroupTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiSelectBuilder GroupTemplateView(IHtmlContent templateView)
The view that contains the template for GroupTemplate
Returns:Returns the current MultiSelectBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiSelectBuilder HeaderTemplate(string value)
The value for HeaderTemplate
Returns:Returns the current MultiSelectBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiSelectBuilder HeaderTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the headertemplate.
Returns:Returns the current MultiSelectBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiSelectBuilder HeaderTemplateHandler(string templateHandler)
The handler that returs the template for HeaderTemplate
Returns:Returns the current MultiSelectBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiSelectBuilder HeaderTemplateId(string templateId)
The ID of the template element for HeaderTemplate
Returns:Returns the current MultiSelectBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiSelectBuilder HeaderTemplateView(IHtmlContent templateView)
The view that contains the template for HeaderTemplate
Returns:Returns the current MultiSelectBuilder instance.
The height of the suggestion popup in pixels. The default value is 200 pixels.
public MultiSelectBuilder Height(double value)
The value for Height
Returns:Returns the current MultiSelectBuilder instance.
If set to true the first suggestion will be automatically highlighted.
public MultiSelectBuilder HighlightFirst(bool value)
The value for HighlightFirst
Returns:Returns the current MultiSelectBuilder instance.
If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
public MultiSelectBuilder IgnoreCase(bool value)
The value for IgnoreCase
Returns:Returns the current MultiSelectBuilder instance.
Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.
public MultiSelectBuilder InputMode(string value)
The value for InputMode
Returns:Returns the current MultiSelectBuilder instance.
Defines the items in the MultiSelect
public MultiSelectBuilder Items(Action<SelectListItemFactory> addAction)
The add action.
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the items in the popup list.
public MultiSelectBuilder ItemTemplate(string value)
The value for ItemTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the items in the popup list.
public MultiSelectBuilder ItemTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the itemtemplate.
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the items in the popup list.
public MultiSelectBuilder ItemTemplateHandler(string templateHandler)
The handler that returs the template for ItemTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the items in the popup list.
public MultiSelectBuilder ItemTemplateId(string templateId)
The ID of the template element for ItemTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the items in the popup list.
public MultiSelectBuilder ItemTemplateView(IHtmlContent templateView)
The view that contains the template for ItemTemplate
Returns:Returns the current MultiSelectBuilder instance.
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 MultiSelectBuilder Label(Action<MultiSelectLabelSettingsBuilder> configurator)
The MultiSelectLabelSettingsBuilder for the label setting.
Returns:Returns the current instance of MultiSelectBuilder .
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 MultiSelectBuilder Label(string label)
The label.
Returns:Returns the current instance of MultiSelectBuilder .
Defines the limit of the selected items. If set to null widget will not limit number of the selected items.
public MultiSelectBuilder MaxSelectedItems(double value)
The value for MaxSelectedItems
Returns:Returns the current MultiSelectBuilder instance.
The text messages displayed in the widget. Use this option to customize or localize the messages.
public MultiSelectBuilder Messages(Action<MultiSelectMessagesSettingsBuilder> configurator)
The MultiSelectMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of MultiSelectBuilder .
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. A zero value means that a request will be made as soon as the user focuses the widget.
public MultiSelectBuilder MinLength(double value)
The value for MinLength
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder NoDataTemplate(string value)
The value for NoDataTemplate
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder NoDataTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the nodatatemplate.
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder NoDataTemplateHandler(string templateHandler)
The handler that returs the template for NoDataTemplate
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder NoDataTemplateId(string templateId)
The ID of the template element for NoDataTemplate
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder NoDataTemplateView(IHtmlContent templateView)
The view that contains the template for NoDataTemplate
Returns:Returns the current MultiSelectBuilder instance.
The hint displayed by the widget when it is empty. Not set by default.
public MultiSelectBuilder Placeholder(string value)
The value for Placeholder
Returns:Returns the current MultiSelectBuilder instance.
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
public MultiSelectBuilder Popup(Action<MultiSelectPopupSettingsBuilder> configurator)
The MultiSelectPopupSettingsBuilder for the popup setting.
Returns:Returns the current instance of MultiSelectBuilder .
The configuration for the prefix adornment of the component.
public MultiSelectBuilder PrefixOptions(Action<MultiSelectPrefixOptionsSettingsBuilder> configurator)
The MultiSelectPrefixOptionsSettingsBuilder for the prefixoptions setting.
Returns:Returns the current instance of MultiSelectBuilder .
If set to true, the widget will be readonly and will not allow user input. The widget is not readonly be default and allow user input.
public MultiSelectBuilder Readonly(bool value)
The value for Readonly
Returns:Returns the current MultiSelectBuilder instance.
Sets a value controlling the border radius.
public MultiSelectBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current MultiSelectBuilder instance.
When set to true, renders a sticky "Select all" header at the top of the dropdown list. Clicking it selects all currently rendered items. When checkboxes is also enabled, the header shows a checkbox that reflects the aggregate selection state: unchecked (none selected), indeterminate (some selected), or checked (all selected).The built-in click behavior can be overridden by handling the preventable selectAllChange event.
When set to true, renders a sticky "Select all" header at the top of the dropdown list. Clicking it selects all currently rendered items. When checkboxes is also enabled, the header shows a checkbox that reflects the aggregate selection state: unchecked (none selected), indeterminate (some selected), or checked (all selected).The built-in click behavior can be overridden by handling the preventable selectAllChange event.
public MultiSelectBuilder SelectAll(bool value)
The value for SelectAll
Returns:Returns the current MultiSelectBuilder instance.
Sets the size of the component.
public MultiSelectBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current MultiSelectBuilder instance.
The configuration for the suffix adornment of the component.
public MultiSelectBuilder SuffixOptions(Action<MultiSelectSuffixOptionsSettingsBuilder> configurator)
The MultiSelectSuffixOptionsSettingsBuilder for the suffixoptions setting.
Returns:Returns the current instance of MultiSelectBuilder .
When set to a number, the tag list switches to a summarized display once the number of selected items reaches or exceeds that threshold. The first summarizeAfter items are rendered as individual tags, and the remaining items are collapsed into a single overflow chip showing the count (e.g. "+5 item(s) selected"). When set to null (the default), all selected items are always rendered as individual tags unless tagMode is set to "single".
public MultiSelectBuilder SummarizeAfter(double? value)
The value for SummarizeAfter
Returns:Returns the current MultiSelectBuilder instance.
Represents available tag modes of MultiSelect.
public MultiSelectBuilder TagMode(MultiSelectTagMode value)
The value for TagMode
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the tags.
public MultiSelectBuilder TagTemplate(string value)
The value for TagTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the tags.
public MultiSelectBuilder TagTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the tagtemplate.
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the tags.
public MultiSelectBuilder TagTemplateHandler(string templateHandler)
The handler that returs the template for TagTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the tags.
public MultiSelectBuilder TagTemplateId(string templateId)
The ID of the template element for TagTemplate
Returns:Returns the current MultiSelectBuilder instance.
The template used to render the tags.
public MultiSelectBuilder TagTemplateView(IHtmlContent templateView)
The view that contains the template for TagTemplate
Returns:Returns the current MultiSelectBuilder instance.
Sets the value of the widget.
public MultiSelectBuilder Value(IEnumerable value)
The collection of values.
Returns:Returns the current MultiSelectBuilder 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 MultiSelectBuilder ValuePrimitive()
Returns the current MultiSelectBuilder 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 MultiSelectBuilder ValuePrimitive(bool value)
The value for ValuePrimitive
Returns:Returns the current MultiSelectBuilder instance.
Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.
public MultiSelectBuilder Virtual()
Returns the current instance of MultiSelectVirtualSettingsBuilder .
Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.
public MultiSelectBuilder Virtual(Action<MultiSelectVirtualSettingsBuilder> configurator)
The MultiSelectVirtualSettingsBuilder for the virtual setting.
Returns:Returns the current instance of MultiSelectBuilder .
Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.
public MultiSelectBuilder Virtual(bool enabled)
Enables or disables the virtual option.
Returns:Returns the current instance of MultiSelectVirtualSettingsBuilder .