New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI MultiSelect

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class MultiSelectBuilder : MvvmWidgetBuilderBase<MultiSelect, MultiSelectBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<MultiSelect, MultiSelectBuilder>MvvmWidgetBuilderBase<MultiSelect, MultiSelectBuilder>MultiSelectBuilder

Implements: IHtmlContent

Inherited Members MvvmWidgetBuilderBase<MultiSelect, MultiSelectBuilder>.UseMvvmInitialization(bool)MvvmWidgetBuilderBase<MultiSelect, MultiSelectBuilder>.UseMvvmInitialization()WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.ToComponent()WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.Expression(string)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.Name(string)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.Deferred(bool)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.HtmlAttributes(object)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.Render()WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.ToHtmlString()WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.ToClientTemplate()WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.AsModule(bool)WidgetBuilderBase<MultiSelect, MultiSelectBuilder>.ComponentWidgetBuilderBase<MultiSelect, MultiSelectBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the MultiSelectBuilder class.

C#
public MultiSelectBuilder(MultiSelect component)
Parameters:componentMultiSelect

Methods

Specifies the adaptive rendering of the component.

C#
public MultiSelectBuilder AdaptiveMode(AdaptiveMode value)
Parameters:valueAdaptiveMode

The value for AdaptiveMode

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Allows customization of the subtitle's text in the adaptive view of the component.

C#
public MultiSelectBuilder AdaptiveSubtitle(string value)
Parameters:valuestring

The value for AdaptiveSubtitle

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Allows customization of the title's text in the adaptive view of the component.

C#
public MultiSelectBuilder AdaptiveTitle(string value)
Parameters:valuestring

The value for AdaptiveTitle

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Configures the animation effects of the widget.

C#
public MultiSelectBuilder Animation(Action<PopupAnimationBuilder> animationAction)
Parameters:animationActionAction<PopupAnimationBuilder>

The action which configures the animation effects.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@( Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Animation(animation =&gt;
{
animation.Open(open =&gt;
{
open.SlideIn(SlideDirection.Down);
})
}))

Use to enable or disable animation of the popup element.

C#
public MultiSelectBuilder Animation(bool enable)
Parameters:enablebool

The boolean value.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@( Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Animation(false)) //toggle effect

Controls whether to bind the widget to the data source on initialization.

C#
public MultiSelectBuilder AutoBind(bool value)
Parameters:valuebool

The value for AutoBind

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.AutoBind(false)
)

Controls whether to close the widget suggestion list on item selection.

C#
public MultiSelectBuilder AutoClose(bool value)
Parameters:valuebool

The value for AutoClose

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.AutoClose(false)
)

If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.

C#
public MultiSelectBuilder AutoWidth(bool value)
Parameters:valuebool

The value for AutoWidth

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.AutoWidth(false)
)

Binds the MultiSelect to an IEnumerable list.

C#
public MultiSelectBuilder BindTo(IEnumerable data)
Parameters:dataIEnumerable

The data source.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@( Html.Kendo().MultiSelect()
.Name("MultiSelect")
.DataTextField("CompanyName")
.DataValueField("CompanyID")
.BindTo(new List&lt;Company&gt;
{
new Company {
CompanyName = "Text1",
CompanyID = "Value1"
},
new Company {
CompanyName = "Text2",
CompanyID = "Value2"
}
}))

Binds the MultiSelect to a list of SelectListItem.

C#
public MultiSelectBuilder BindTo(IEnumerable<SelectListItem> dataSource)
Parameters:dataSourceIEnumerable<SelectListItem>

The data source.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@( Html.Kendo().MultiSelect()
.Name("MultiSelect")
.BindTo(new List&lt;SelectListItem&gt;
{
new SelectListItem{
Text = "Text1",
Value = "Value1"
},
new SelectListItem{
Text = "Text2",
Value = "Value2"
}
}))

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.

C#
public MultiSelectBuilder Checkboxes()
Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder Checkboxes(bool value)
Parameters:valuebool

The value for Checkboxes

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder ClearButton(bool value)
Parameters:valuebool

The value for ClearButton

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.ClearButton(false)
)

Sets the data source configuration of the MultiSelect.

C#
public MultiSelectBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
Parameters:configuratorAction<ReadOnlyDataSourceBuilder>

The lambda which configures the data source

Returns:

MultiSelectBuilder

The id of the external data source configuration for the MultiSelect.

C#
public MultiSelectBuilder DataSource(string dataSourceId)
Parameters:dataSourceIdstring

The id of the external data source

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder DataTextField(string value)
Parameters:valuestring

The value for DataTextField

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The field of the data item that provides the value of the widget.

C#
public MultiSelectBuilder DataValueField(string value)
Parameters:valuestring

The value for DataValueField

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.DataTextField("Text")
.DataValueField("Value")
)

Specifies the delay in milliseconds after which the MultiSelect will start filtering dataSource.

C#
public MultiSelectBuilder Delay(double value)
Parameters:valuedouble

The value for Delay

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Configures MultiSelect to render a down arrow that opens and closes its popup.

C#
public MultiSelectBuilder DownArrow()
Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Configures MultiSelect to render a down arrow that opens and closes its popup.

C#
public MultiSelectBuilder DownArrow(bool value)
Parameters:valuebool

The value for DownArrow

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.DataTextField("Text")
.DataValueField("Value")
.DownArrow()
)

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.

C#
public MultiSelectBuilder Enable(bool value)
Parameters:valuebool

The value for Enable

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder EnforceMinLength()
Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder EnforceMinLength(bool value)
Parameters:valuebool

The value for EnforceMinLength

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.MinLength(3)
.Filter("contains")
.EnforceMinLength(true)
)

Configures the client-side events.

C#
public MultiSelectBuilder Events(Action<MultiSelectEventBuilder> configurator)
Parameters:configuratorAction<MultiSelectEventBuilder>

The client events action.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Events(events =&gt; events
.Change("onChange")
)
)

Sets a value controlling how the color is applied.

C#
public MultiSelectBuilder FillMode(FillMode value)
Parameters:valueFillMode

The value for FillMode

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.FillMode(FillMode.Solid)
)

The filtering method used to determine the suggestions for the current value.

C#
public MultiSelectBuilder Filter(FilterType value)
Parameters:valueFilterType

The value for Filter

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Filter(FilterType.Contains);
)

The template used to render the fixed header group. By default the widget displays only the value of the current group.

C#
public MultiSelectBuilder FixedGroupTemplate(string value)
Parameters:valuestring

The value for FixedGroupTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FixedGroupTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the fixedgrouptemplate.

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FixedGroupTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for FixedGroupTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FixedGroupTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for FixedGroupTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FixedGroupTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for FixedGroupTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FooterTemplate(string value)
Parameters:valuestring

The value for FooterTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the footertemplate.

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FooterTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for FooterTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FooterTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for FooterTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder FooterTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for FooterTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the groups. By default the widget displays only the value of the group.

C#
public MultiSelectBuilder GroupTemplate(string value)
Parameters:valuestring

The value for GroupTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the groups. By default the widget displays only the value of the group.

C#
public MultiSelectBuilder GroupTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the grouptemplate.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the groups. By default the widget displays only the value of the group.

C#
public MultiSelectBuilder GroupTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for GroupTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the groups. By default the widget displays only the value of the group.

C#
public MultiSelectBuilder GroupTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for GroupTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the groups. By default the widget displays only the value of the group.

C#
public MultiSelectBuilder GroupTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for GroupTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Specifies a static HTML content, which will be rendered as a header of the popup element.

C#
public MultiSelectBuilder HeaderTemplate(string value)
Parameters:valuestring

The value for HeaderTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Specifies a static HTML content, which will be rendered as a header of the popup element.

C#
public MultiSelectBuilder HeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the headertemplate.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Specifies a static HTML content, which will be rendered as a header of the popup element.

C#
public MultiSelectBuilder HeaderTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for HeaderTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Specifies a static HTML content, which will be rendered as a header of the popup element.

C#
public MultiSelectBuilder HeaderTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for HeaderTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Specifies a static HTML content, which will be rendered as a header of the popup element.

C#
public MultiSelectBuilder HeaderTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for HeaderTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The height of the suggestion popup in pixels. The default value is 200 pixels.

C#
public MultiSelectBuilder Height(double value)
Parameters:valuedouble

The value for Height

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

If set to true the first suggestion will be automatically highlighted.

C#
public MultiSelectBuilder HighlightFirst(bool value)
Parameters:valuebool

The value for HighlightFirst

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.HighlightFirst(true)
)

If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.

C#
public MultiSelectBuilder IgnoreCase(bool value)
Parameters:valuebool

The value for IgnoreCase

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder InputMode(string value)
Parameters:valuestring

The value for InputMode

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("multiSelect")
.InputMode("search")
)

Defines the items in the MultiSelect

C#
public MultiSelectBuilder Items(Action<SelectListItemFactory> addAction)
Parameters:addActionAction<SelectListItemFactory>

The add action.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@( Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Items(items =&gt;
{
items.Add().Text("First Item");
items.Add().Text("Second Item");
}))

The template used to render the items in the popup list.

C#
public MultiSelectBuilder ItemTemplate(string value)
Parameters:valuestring

The value for ItemTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.ItemTemplate("#= data #")
)

The template used to render the items in the popup list.

C#
public MultiSelectBuilder ItemTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the itemtemplate.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the items in the popup list.

C#
public MultiSelectBuilder ItemTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ItemTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the items in the popup list.

C#
public MultiSelectBuilder ItemTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for ItemTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.ItemTemplateId("widgetTemplateId")
)

The template used to render the items in the popup list.

C#
public MultiSelectBuilder ItemTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for ItemTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.ItemTemplateView(Html.Partial("widgetTemplate"))
)

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.

C#
public MultiSelectBuilder Label(Action<MultiSelectLabelSettingsBuilder> configurator)
Parameters:configuratorAction<MultiSelectLabelSettingsBuilder>

The MultiSelectLabelSettingsBuilder for the label setting.

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder Label(string label)
Parameters:labelstring

The label.

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder MaxSelectedItems(double value)
Parameters:valuedouble

The value for MaxSelectedItems

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.MaxSelectedItems(3)
)

The text messages displayed in the widget. Use this option to customize or localize the messages.

C#
public MultiSelectBuilder Messages(Action<MultiSelectMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<MultiSelectMessagesSettingsBuilder>

The MultiSelectMessagesSettingsBuilder for the messages setting.

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder MinLength(double value)
Parameters:valuedouble

The value for MinLength

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.MinLength(3)
)

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.

C#
public MultiSelectBuilder NoDataTemplate(string value)
Parameters:valuestring

The value for NoDataTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder NoDataTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the nodatatemplate.

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder NoDataTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for NoDataTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder NoDataTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for NoDataTemplate

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder NoDataTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for NoDataTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The hint displayed by the widget when it is empty. Not set by default.

C#
public MultiSelectBuilder Placeholder(string value)
Parameters:valuestring

The value for Placeholder

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Placeholder("Select country...")
)

The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.

C#
public MultiSelectBuilder Popup(Action<MultiSelectPopupSettingsBuilder> configurator)
Parameters:configuratorAction<MultiSelectPopupSettingsBuilder>

The MultiSelectPopupSettingsBuilder for the popup setting.

Returns:

MultiSelectBuilder

Returns the current instance of MultiSelectBuilder .

The configuration for the prefix adornment of the component.

C#
public MultiSelectBuilder PrefixOptions(Action<MultiSelectPrefixOptionsSettingsBuilder> configurator)
Parameters:configuratorAction<MultiSelectPrefixOptionsSettingsBuilder>

The MultiSelectPrefixOptionsSettingsBuilder for the prefixoptions setting.

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder Readonly(bool value)
Parameters:valuebool

The value for Readonly

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Readonly(true);
)

Sets a value controlling the border radius.

C#
public MultiSelectBuilder Rounded(Rounded value)
Parameters:valueRounded

The value for Rounded

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Rounded(Rounded.Medium)
)

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.

C#
public MultiSelectBuilder SelectAll()
Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder SelectAll(bool value)
Parameters:valuebool

The value for SelectAll

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Sets the size of the component.

C#
public MultiSelectBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value for Size

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Size(ComponentSize.Medium)
)

The configuration for the suffix adornment of the component.

C#
public MultiSelectBuilder SuffixOptions(Action<MultiSelectSuffixOptionsSettingsBuilder> configurator)
Parameters:configuratorAction<MultiSelectSuffixOptionsSettingsBuilder>

The MultiSelectSuffixOptionsSettingsBuilder for the suffixoptions setting.

Returns:

MultiSelectBuilder

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".

C#
public MultiSelectBuilder SummarizeAfter(double? value)
Parameters:valuedouble?

The value for SummarizeAfter

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@( Html.Kendo().MultiSelect()
.Name("MultiSelect")
.SummarizeAfter(5)

Represents available tag modes of MultiSelect.

C#
public MultiSelectBuilder TagMode(MultiSelectTagMode value)
Parameters:valueMultiSelectTagMode

The value for TagMode

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.TagMode(TagMode.Single)
)

The template used to render the tags.

C#
public MultiSelectBuilder TagTemplate(string value)
Parameters:valuestring

The value for TagTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.TagTemplate("#= data #")
)

The template used to render the tags.

C#
public MultiSelectBuilder TagTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the tagtemplate.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the tags.

C#
public MultiSelectBuilder TagTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for TagTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

The template used to render the tags.

C#
public MultiSelectBuilder TagTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for TagTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.TagTemplateId("widgetTemplateId")
)

The template used to render the tags.

C#
public MultiSelectBuilder TagTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for TagTemplate

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@(Html.Kendo().MultiSelect()
.Name("MultiSelect")
.TagTemplateView(Html.Partial("widgetTemplate"))
)

Sets the value of the widget.

C#
public MultiSelectBuilder Value(IEnumerable value)
Parameters:valueIEnumerable

The collection of values.

Returns:

MultiSelectBuilder

Returns the current MultiSelectBuilder instance.

Example:
C#
@( Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Value(new string[] { "1" }))

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.

C#
public MultiSelectBuilder ValuePrimitive()
Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder ValuePrimitive(bool value)
Parameters:valuebool

The value for ValuePrimitive

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder Virtual()
Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder Virtual(Action<MultiSelectVirtualSettingsBuilder> configurator)
Parameters:configuratorAction<MultiSelectVirtualSettingsBuilder>

The MultiSelectVirtualSettingsBuilder for the virtual setting.

Returns:

MultiSelectBuilder

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.

C#
public MultiSelectBuilder Virtual(bool enabled)
Parameters:enabledbool

Enables or disables the virtual option.

Returns:

MultiSelectBuilder

Returns the current instance of MultiSelectVirtualSettingsBuilder .