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

MultiColumnComboBoxBuilder

Properties

WriteAction - Func

Methods

Animation(System.Boolean)

Configures the opening and closing animations of the suggestion popup. When the option is disabled, the opening and closing animations are disabled, too. As a result, the suggestion popup will open and close instantly.

Parameters

enable - System.Boolean

The boolean value that enables or disables the animations.

Example


            @(Html.Kendo().MultiColumnComboBox()
                .Name("multiColumnComboBox")
                .Animation(false)
            )

Animation(System.Action)

Configures the animation effects of the MultiColumnComboBox suggestion popup.

Parameters

animationAction - System.Action<PopupAnimationBuilder>

The action that configures the animation effects.

Example


            @(Html.Kendo().MultiColumnComboBox()
                .Name("multiColumnComboBox")
                .Animation(animationAction =>
                {
                    animationAction.Open(o => o.Zoom(ZoomDirection.In).Duration(300));
                    animationAction.Close(close => close.Fade(FadeDirection.Out).Zoom(ZoomDirection.Out).Duration(300));
                })
            )

BindTo(System.Collections.IEnumerable)

Binds the MultiColumnComboBox to an IEnumerable collection.

Parameters

data - System.Collections.IEnumerable

The data collection.

Example


             @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .DataTextField("CompanyName")
                        .DataValueField("CompanyID")
                        .BindTo(new List<Company>
                        {
                            new Company {
                                CompanyName = "Text1",
                                CompanyID = "Value1"
                            },
                            new Company {
                                CompanyName = "Text2",
                                CompanyID = "Value2"
                            }
                        }))

BindTo(System.Collections.Generic.IEnumerable)

Binds the MultiColumnComboBox to an IEnumerable collection of SelectListItem.

Parameters

dataSource - System.Collections.Generic.IEnumerable<SelectListItem>

The data collection.

Example


             @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .BindTo(new List<SelectListItem>
                        {
                            new SelectListItem{
                                Text = "Text1",
                                Value = "Value1"
                            },
                            new SelectListItem{
                                Text = "Text2",
                                Value = "Value2"
                            }
                        }))

Items(System.Action)

Defines the items in the MultiColumnComboBox.

Parameters

addAction - System.Action<SelectListItemFactory>

The action that configures the items.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Items(items =>
                        {
                            items.Add().Text("First Item");
                            items.Add().Text("Second Item");
                        }))

DataSource(System.Action)

Sets the DataSource configuration of the MultiColumnComboBox.

Parameters

configurator - System.Action<ReadOnlyDataSourceBuilder>

The action that configures the DataSource options.

Example


            @(Html.Kendo().MultiColumnComboBox()
                .Name("multiColumnComboBox")
                .DataTextField("ProductName")
                .DataValueField("ProductID")
                .DataSource(ds =>
                {
                    ds.Read(read => read.Action("Read", "Home"));
                })
            )

DataSource(System.String)

Sets an external DataSource instance as a DataSource of the MultiColumnComboBox.

Parameters

dataSourceId - System.String

The Name() of the external DataSource instance.

Example


            @(Html.Kendo().DataSource<ProductViewModel>()
                .Name("productsDS")
                .Ajax(dataSource => dataSource.Read(read => read.Action("Read", "Home")))
              )
            @(Html.Kendo().MultiColumnComboBox()
                .Name("multiColumnComboBox")
                .DataTextField("ProductName")
                .DataValueField("ProductID")
                .DataSource("productsDS")
            )

Filter(System.String)

The filtering method used to determine the suggestions for the current value. The filtering can be performed over string values only (either the component's data has to be an array of strings, or over the specified DataTextField() field. The supported filter values are "startswith", "endswith" and "contains".

Parameters

value - System.String

The value that configures the filter operator.

Example


            @(Html.Kendo().MultiColumnComboBox()
                .Name("multiColumnComboBox")
                .Filter("contains")
            )

SelectedIndex(System.Int32)

Defines index of the initially selected item.

Parameters

value - System.Int32

Item index.

Example


             @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .SelectedIndex(0)
            )

AutoBind(System.Boolean)

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

Parameters

value - System.Boolean

The value for AutoBind

CascadeFrom(System.String)

Use it to set the Id of the parent MultiColumnComboBox widget.Help topic showing how cascading functionality works

Parameters

value - System.String

The value for CascadeFrom

CascadeFromField(System.String)

Defines the field to be used to filter the data source. If not defined the parent's dataValueField option will be used.Help topic showing how cascading functionality works

Parameters

value - System.String

The value for CascadeFromField

CascadeFromParentField(System.String)

Defines the parent field to be used to retain value from. This value will be used further to filter the dataSource. If not defined the value from the parent's dataValueField will be used.

Parameters

value - System.String

The value for CascadeFromParentField

CascadeOnCustomValue(System.Boolean)

Applicable to a parent MultiColumnComboBox in a cascading scenario. If set to true cascading will be triggered upon custom input in the parent widget. When set to false (default) the child will not cascade and it will be disabled upon setting custom input in the parent MultiColumnComboBox. Cascade on custom values works only when cascadeFromParentField is not set for the child combo, or it points to the dataValueField of the parent.

Parameters

value - System.Boolean

The value for CascadeOnCustomValue

CascadeOnCustomValue()

Applicable to a parent MultiColumnComboBox in a cascading scenario. If set to true cascading will be triggered upon custom input in the parent widget. When set to false (default) the child will not cascade and it will be disabled upon setting custom input in the parent MultiColumnComboBox. Cascade on custom values works only when cascadeFromParentField is not set for the child combo, or it points to the dataValueField of the parent.

Columns(System.Action)

Defines the columns rendered in the table of the MultiColumnComboBox.

Parameters

configurator - System.Action<MultiColumnComboBoxColumnFactory>

The configurator for the columns setting.

ClearButton(System.Boolean)

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.

Parameters

value - System.Boolean

The value for ClearButton

DataTextField(System.String)

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.

Parameters

value - System.String

The value for DataTextField

DataValueField(System.String)

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

Parameters

value - System.String

The value for DataValueField

Delay(System.Double)

The delay in milliseconds between a keystroke and when the widget displays the popup.

Parameters

value - System.Double

The value for Delay

The width of the dropdown. Numeric values are treated as pixels.

Parameters

value - System.String

The value for DropDownWidth

Enable(System.Boolean)

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.

Parameters

value - System.Boolean

The value for Enable

EnforceMinLength(System.Boolean)

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.

Parameters

value - System.Boolean

The value for EnforceMinLength

EnforceMinLength()

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.

FilterFields(System.String[])

Enables multicolumn filtering.

Parameters

value - System.String[]

The value for FilterFields

FixedGroupTemplate(System.String)

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

Parameters

value - System.String

The value for FixedGroupTemplate

FixedGroupTemplateId(System.String)

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

Parameters

templateId - System.String

The ID of the template element for FixedGroupTemplate

FixedGroupTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

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

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for FixedGroupTemplate

FixedGroupTemplateHandler(System.String)

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

Parameters

templateHandler - System.String

The handler that returs the template for FixedGroupTemplate

FixedGroupTemplate(Kendo.Mvc.UI.TemplateBuilder)

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

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the fixedgrouptemplate.

FooterTemplate(System.String)

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.

Parameters

value - System.String

The value for FooterTemplate

FooterTemplateId(System.String)

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.

Parameters

templateId - System.String

The ID of the template element for FooterTemplate

FooterTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

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.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for FooterTemplate

FooterTemplateHandler(System.String)

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.

Parameters

templateHandler - System.String

The handler that returs the template for FooterTemplate

FooterTemplate(Kendo.Mvc.UI.TemplateBuilder)

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.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the footertemplate.

Label(System.Action)

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.

Parameters

configurator - System.Action<MultiColumnComboBoxLabelSettingsBuilder>

The configurator for the label setting.

GroupTemplate(System.String)

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

Parameters

value - System.String

The value for GroupTemplate

GroupTemplateId(System.String)

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

Parameters

templateId - System.String

The ID of the template element for GroupTemplate

GroupTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

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

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for GroupTemplate

GroupTemplateHandler(System.String)

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

Parameters

templateHandler - System.String

The handler that returs the template for GroupTemplate

GroupTemplate(Kendo.Mvc.UI.TemplateBuilder)

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

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the grouptemplate.

Height(System.Double)

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

Parameters

value - System.Double

The value for Height

HighlightFirst(System.Boolean)

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

Parameters

value - System.Boolean

The value for HighlightFirst

IgnoreCase(System.Boolean)

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

Parameters

value - System.Boolean

The value for IgnoreCase

Messages(System.Action)

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

Parameters

configurator - System.Action<MultiColumnComboBoxMessagesSettingsBuilder>

The configurator for the messages setting.

MinLength(System.Double)

The minimum number of characters the user must type before a search is performed. Set to higher value than 1 if the search could match a lot of items.

Parameters

value - System.Double

The value for MinLength

NoDataTemplate(System.String)

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.

Parameters

value - System.String

The value for NoDataTemplate

NoDataTemplateId(System.String)

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.

Parameters

templateId - System.String

The ID of the template element for NoDataTemplate

NoDataTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

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.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for NoDataTemplate

NoDataTemplateHandler(System.String)

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.

Parameters

templateHandler - System.String

The handler that returs the template for NoDataTemplate

NoDataTemplate(Kendo.Mvc.UI.TemplateBuilder)

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.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the nodatatemplate.

Placeholder(System.String)

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

Parameters

value - System.String

The value for Placeholder

Popup(System.Action)

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

Parameters

configurator - System.Action<MultiColumnComboBoxPopupSettingsBuilder>

The configurator for the popup setting.

PrefixOptions(System.Action)

The configuration for the prefix adornment of the widget.

Parameters

configurator - System.Action<MultiColumnComboBoxPrefixOptionsSettingsBuilder>

The configurator for the prefixoptions setting.

SuffixOptions(System.Action)

The configuration for the suffix adornment of the widget.

Parameters

configurator - System.Action<MultiColumnComboBoxSuffixOptionsSettingsBuilder>

The configurator for the suffixoptions setting.

Suggest(System.Boolean)

If set to true the widget will automatically use the first suggestion as its value.

Parameters

value - System.Boolean

The value for Suggest

Suggest()

If set to true the widget will automatically use the first suggestion as its value.

SyncValueAndText(System.Boolean)

When set to true the widget will automatically set selected value to the typed custom text. Set the option to false to clear the selected value but keep the custom text.

Parameters

value - System.Boolean

The value for SyncValueAndText

HeaderTemplate(System.String)

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

Parameters

value - System.String

The value for HeaderTemplate

HeaderTemplateId(System.String)

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

Parameters

templateId - System.String

The ID of the template element for HeaderTemplate

HeaderTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

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

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for HeaderTemplate

HeaderTemplateHandler(System.String)

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

Parameters

templateHandler - System.String

The handler that returs the template for HeaderTemplate

HeaderTemplate(Kendo.Mvc.UI.TemplateBuilder)

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

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the headertemplate.

Text(System.String)

The text of the widget used when the autoBind is set to false.

Parameters

value - System.String

The value for Text

Value(System.String)

The value of the widget.

Parameters

value - System.String

The value for Value

ValuePrimitive(System.Boolean)

Specifies the value binding behavior for the widget when the initial model value is null. 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.

Parameters

value - System.Boolean

The value for ValuePrimitive

ValuePrimitive()

Specifies the value binding behavior for the widget when the initial model value is null. 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.

Virtual(System.Action)

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.

Parameters

configurator - System.Action<MultiColumnComboBoxVirtualSettingsBuilder>

The configurator for the virtual setting.

Virtual()

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.

Virtual(System.Boolean)

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.

Parameters

enabled - System.Boolean

Enables or disables the virtual option.

Filter(Kendo.Mvc.UI.FilterType)

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

Parameters

value - FilterType

The value for Filter

Size(Kendo.Mvc.UI.ComponentSize)

Sets the size of the component.

Parameters

value - ComponentSize

The value for Size

Rounded(Kendo.Mvc.UI.Rounded)

Sets a value controlling the border radius.

Parameters

value - Rounded

The value for Rounded

FillMode(Kendo.Mvc.UI.FillMode)

Sets a value controlling how the color is applied.

Parameters

value - FillMode

The value for FillMode

AdaptiveMode(Kendo.Mvc.UI.AdaptiveMode)

Specifies the adaptive rendering of the component.

Parameters

value - AdaptiveMode

The value for AdaptiveMode

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<MultiColumnComboBoxEventBuilder>

The client events action.

Example


            @(Html.Kendo().MultiColumnComboBox()
                  .Name("MultiColumnComboBox")
                  .Events(events => events
                      .Change("onChange")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean
In this article
Not finding the help you need?