MultiSelectBuilder
Defines the fluent interface for configuring the MultiSelect component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MultiSelectBuilder : ListBuilderBase<MultiSelect, MultiSelectBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<MultiSelect, MultiSelectBuilder>ListBuilderBase<MultiSelect, MultiSelectBuilder>MultiSelectBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the MultiSelectBuilder class.
Methods
Controls whether to bind the component to the DataSource on initialization.
public MultiSelectBuilder AutoBind(bool autoBind)
If true, enables binding on initialization.
Returns:Controls whether to close the component suggestion list on item selection.
public MultiSelectBuilder AutoClose(bool autoClose)
If true, enables suggestion list auto-close.
Returns:Controls whether to adjust the popup width
public MultiSelectBuilder AutoWidth(bool autoWidth)
If true, enables automatic popup width adjustment.
Returns:Binds the MultiSelect to a list of DropDownListItem.
public MultiSelectBuilder BindTo(IEnumerable<DropDownListItem> dataSource)
The data source.
Returns:Binds the MultiSelect to a list of SelectListItem.
public MultiSelectBuilder BindTo(IEnumerable<SelectListItem> dataSource)
The data source.
Returns:When set to true, renders a checkbox next to each item in the dropdown list.
When set to true, renders a checkbox next to each item in the dropdown list.
public MultiSelectBuilder Checkboxes(bool value)
The value for Checkboxes
Returns:Use to enable or disable clear button functionality.
public MultiSelectBuilder ClearButton(bool enable)
If true, a clear button is shown in the input.
Returns:Sets the field of the data item that provides the value content of the list items.
public MultiSelectBuilder DataValueField(string field)
The name of the field.
Returns:Configures the MultiSelect to render a down arrow that opens and closes its popup.
Configures the MultiSelect to render a down arrow, clicking on which opens and closes the popup.
public MultiSelectBuilder DownArrow(bool value)
If true, a down arrow is rendered.
Returns:If set to true the component will not show all items when the text of the search input cleared. By default the component shows all items when the text of the search input is cleared. Works in conjunction with minLength.
public MultiSelectBuilder EnforceMinLength(bool enforceMinLength)
The boolean value.
Returns:Configures the client-side events.
public MultiSelectBuilder Events(Action<MultiSelectEventBuilder> clientEventsAction)
The client events action.
Returns:Sets a value controlling how the color is applied.
public MultiSelectBuilder FillMode(FillMode value)
The value for FillMode
Returns:Enables the filtering of items.
public MultiSelectBuilder Filter(FilterType filter)
The type of filtering.
Returns:Enables the filtering of items.
public MultiSelectBuilder Filter(string filter)
The type of filtering.
Returns:Use it to enable highlighting of first matched item.
public MultiSelectBuilder HighlightFirst(bool highlightFirst)
If true, enables the highlighting.
Returns:Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public MultiSelectBuilder InputMode(string value)
The value that configures the "inputmode" attribute.
Returns:Defines the items in the MultiSelect
public MultiSelectBuilder Items(Action<DropDownListItemFactory> addAction)
The add action.
Returns:Template to be used for rendering the items in the list.
public MultiSelectBuilder ItemTemplate(string template)
The content to be rendered in the items.
Returns:Sets the name of the JavaScript function that will be used as the item template handler for the MultiSelect.
public MultiSelectBuilder ItemTemplateHandler(string template)
The name of the JavaScript function that will handle the item template.
Returns:Specifies the id of the template to be used for rendering the items in the list.
public MultiSelectBuilder ItemTemplateId(string templateId)
The id of the template.
Returns:Specifies the id of the template to be used for rendering the items in the list.
public MultiSelectBuilder ItemTemplateView(MvcHtmlString template)
The view which contains template.
Returns:Specifies the limit of the selected items. If set to null the component will not limit the number of the selected items.
public MultiSelectBuilder MaxSelectedItems(int maxItems)
The max number of selected items.
Returns:The text messages displayed in the component. Use it to customize or localize the messages.
public MultiSelectBuilder Messages(Action<MultiSelectMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Specifies the minimum number of characters that should be typed before the component queries the dataSource.
public MultiSelectBuilder MinLength(int length)
The number of characters.
Returns:A string that appears in the textbox when it has no value.
public MultiSelectBuilder Placeholder(string placeholder)
The text that appears as placeholder.
Returns:The configuration for the prefix adornment of the widget.
public MultiSelectBuilder PrefixOptions(Action<PrefixOptionsSettingsBuilder> configurator)
The action that configures the prefix options.
Returns: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:Sets a value controlling the border radius.
public MultiSelectBuilder Rounded(Rounded? value)
The value for Rounded
Returns:When set to true, renders a sticky "Select all" header at the top of the dropdown list.
When set to true, renders a sticky "Select all" header at the top of the dropdown list.
public MultiSelectBuilder SelectAll(bool value)
The value for SelectAll
Returns:Sets the size of the component.
public MultiSelectBuilder Size(ComponentSize? value)
The value for Size.
Returns:The configuration for the suffix adornment of the widget.
public MultiSelectBuilder SuffixOptions(Action<SuffixOptionsSettingsBuilder> configurator)
The action that configures the suffix options.
Returns:When set to a number, the tag list switches to a summarized display once the number of selected items exceeds this value.
public MultiSelectBuilder SummarizeAfter(double value)
The value for SummarizeAfter
Returns:The mode used to render the selected tags. The available modes are 'single' and 'multiple'
Template to be used for rendering the tags of the selected items.
public MultiSelectBuilder TagTemplate(string template)
The content to be rendered in the tags.
Returns:Sets the name of the JavaScript function that will be used as the tag template handler for the MultiSelect.
public MultiSelectBuilder TagTemplateHandler(string handler)
The name of the JavaScript function that will handle the tag template.
Returns:Specifies the id of the tag template for the selected items.
public MultiSelectBuilder TagTemplateId(string templateId)
The id of the template.
Returns:Specifies the id of the tag template for the selected items.
public MultiSelectBuilder TagTemplateView(MvcHtmlString template)
The view which contains the template.
Returns:Sets the value of the component.
public MultiSelectBuilder Value(IEnumerable value)
The collection of values.
Returns: