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

Appearance

In this article, you will find information about the styling options and rendering of the Telerik UI for ASP.NET MVC MultiColumnComboBox.

For a live example, visit the Appearance Demo of the MultiColumnComboBox.

Options

The MultiColumnComboBox supports the following styling options:

  • Size—configures the overall size of the component.
  • Rounded—configures the border radius of the component.
  • FillMode—configures how the color is applied to the component.

Size

The Size option controls the size of the MultiColumnComboBox. The k-input-{size} class, which is applied to the wrapping span element of the MultiColumnComboBox, reflects the value of the Size option.

The following values are available for the Size option:

  • Small—small size (applies the k-input-sm class to the wrapping span element)
  • Medium—medium size (applies the k-input-md class to the wrapping span element)
  • Large—large size (applies the k-input-lg class to the wrapping span element)
  • None—unset.

The default size value is Medium.

The example below shows a basic configuration and how to set size to "large":

    @(Html.Kendo().MultiColumnComboBox()
        .Name("movies")
        .DataTextField("Text")
        .DataValueField("Value")
        .Size(ComponentSize.Large)
        .Columns(columns =>
        {
            columns.Add().Field("Text").Title("Text").Width("300px");
            columns.Add().Field("Value").Title("Value").Width("100px");
        })
        .BindTo(new List<SelectListItem>()
        {
            new SelectListItem() {
            Text = "Item1", Value ="1"
            },
            new SelectListItem() {
            Text = "Item2", Value ="2"
            },
            new SelectListItem() {
            Text = "Item3", Value ="3"
            }
        })
    )

Below is the HTML of the MultiColumnComboBox that is affected from the Size configuration. The ComponentSize.Large value is reflected through the k-input-lg class applied to the span.k-dropdowngrid wrapping element:

<span class="k-input k-combobox k-widget k-dropdowngrid k-combobox-clearable k-input-solid k-input-lg k-rounded-full">
</span>

Rounded

The Rounded option controls the border radius of the MultiColumnComboBox. The class that corresponds to the Rounded option is k-rounded-{rounded}.

The following values are available for the Rounded option:

  • Small—small border radius (applies the k-rounded-sm class to the wrapping span element)
  • Medium—medium border radius (applies the k-rounded-md class to the wrapping span element)
  • Large—large border radius (applies the k-rounded-lg class to the wrapping span element)
  • Full—largest (ellipse-like) border radius (applies the k-rounded-full class to the wrapping span element)
  • None—unset.

The default value is Full.

The following example demonstrates how to set Rounded in the declaration of the MultiColumnComboBox:

    @(Html.Kendo().MultiColumnComboBox()
        .Name("movies")
        .DataTextField("Text")
        .DataValueField("Value")
        .Rounded(Rounded.Medium)
        .Columns(columns =>
        {
            columns.Add().Field("Text").Title("Text").Width("300px");
            columns.Add().Field("Value").Title("Value").Width("100px");
        })
        .BindTo(new List<SelectListItem>()
        {
            new SelectListItem() {
            Text = "Item1", Value ="1"
            },
            new SelectListItem() {
            Text = "Item2", Value ="2"
            },
            new SelectListItem() {
            Text = "Item3", Value ="3"
            }
        })
    )

The Rounded.Medium value is reflected through the k-rounded-md class applied to the span.k-dropdowngrid wrapping element:

<span class="k-input k-combobox k-widget k-dropdowngrid k-combobox-clearable k-input-solid k-input-lg k-rounded-md">
    ...
</span>

FillMode

The FillMode option controls how color is applied to the component. The structure of the class is k-input-{fillMode}.

The following values are available for the FillMode option:

  • Solid—applies the k-input-solid class to the wrapping span element
  • Flat—applies the k-input-flat class to the wrapping span element
  • Outline—applies the k-input-outline class to the wrapping span element
  • None—unset.

The default value is Solid and it is applied to the span.k-dropdowngrid wrapping element through the k-input-solid class.

The following example demonstrates how to set FillMode in the declaration of the MultiColumnComboBox:

    @(Html.Kendo().MultiColumnComboBox()
        .Name("movies")
        .DataTextField("Text")
        .DataValueField("Value")
        .FillMode(FillMode.Outline)
        .Columns(columns =>
        {
            columns.Add().Field("Text").Title("Text").Width("300px");
            columns.Add().Field("Value").Title("Value").Width("100px");
        })
        .BindTo(new List<SelectListItem>()
        {
            new SelectListItem() {
            Text = "Item1", Value ="1"
            },
            new SelectListItem() {
            Text = "Item2", Value ="2"
            },
            new SelectListItem() {
            Text = "Item3", Value ="3"
            }
        })
    )

The FillMode.Outline value is reflected through the k-input-outline class applied to the span.k-dropdowngrid wrapping element:

<span class="k-input k-combobox k-widget k-dropdowngrid k-combobox-clearable k-input-outline k-input-md k-rounded-full">
</span>

Rendering

Starting with version R1 2022, the component has a new rendering. For additional information on the decision behind these changes, visit the Components Rendering Overview article.

To review the latest rendering of the component, refer to the HTML specifications in the Kendo UI Themes Monorepo. The tests folder of the repository contains the rendering for all flavors of the components, providing a clear reference for how their elements are structured. The rendering information can help you customize a component's appearance and behavior by applying custom CSS or JavaScript to suit specific design or functional requirements.

See Also

In this article