# Blazor MultiColumnComboBox Overview

The <a href="https://www.telerik.com/blazor-ui/multicolumncombobox" target="_blank">Blazor MultiColumnComboBox</a> enables users to select an option from a [predefined set of choices](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/data-bind) in a dropdown grid layout. Users can also [filter](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/filter) or [group](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/grouping) the available items, or enter [custom values](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/custom-value).

## Creating MultiColumnComboBox

1. Use the `<TelerikMultiColumnComboBox>` tag.
2. Populate the `Data` parameter with the collection that you want to appear in the dropdown.
3. Set the `TextField` and `ValueField` parameters to point to the corresponding property names of the model.
4. [Bind the component `Value`](https://www.telerik.com/blazor-ui/documentation/common-features/data-binding/overview#data-binding-vs-value-binding) to a variable of the same type as the one of the `ValueField`.
5. Add `MultiColumnComboBoxColumn` instances under the `MultiColumnComboBoxColumns` tag. The `Field` parameter of each column must point to a property in the model.

> caption MultiColumnComboBox data binding with two-way value binding

<demo metaUrl="client/multicolumncombobox/overview/example-1/" height="420"></demo>

## Data Binding

The Blazor MultiColumnComboBox requires a data source so that it can populate the dropdown with data. To provide a data source, use the `Data` property. [Read more about the Blazor MultiColumnComboBox data binding...](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/data-bind).

The linked article also explains how the component behaves when the current value is not present in the data.

## Columns

The MultiColumnComboBox renders its dropdown items in a grid-like column layout. [Learn how to define and configure the Blazor MultiColumnComboBox columns...](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/columns/overview)

## Filtering

The MultiColumnComboBox has a built-in filter that narrows down the shown suggestions as the end-user types. To configure this feature, use the `Filterable` parameter. Additionally, you can choose between different filter operators and configure after how many symbols the list with suggestions will appear. [Read more about the Blazor MultiColumnComboBox filtering...](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/filter).

## Grouping

The MultiColumnComboBox enables you to group the listed suggestions into categories so you can help the end-user to browse faster through longer lists. [Read more about the Blazor MultiColumnComboBox grouping...](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/grouping).

## Adornments

The component allows you to add custom elements as prefixes and suffixes. [Read more about how to render custom adornments before and after the input element...](https://www.telerik.com/blazor-ui/documentation/common-features/input-adornments)

## Templates

You can use the functionality of the built-in templates and customize the default rendering of the component. [Read more about the Blazor MultiColumnComboBox templates...](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/templates).

## Validation

You can ensure that the component value is acceptable by using the built-in validation. [Read more about input validation...](https://www.telerik.com/blazor-ui/documentation/common-features/input-validation).

## Virtualization

By virtualizing the elements in the dropdown, you can use huge data sources without performance issues. The UI virtualization works with both local and remote data. [Read more about the Blazor MultiColumnComboBox virtualization...](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/virtualization)

## Adaptive Rendering

<demo metaUrl="client/multicolumncombobox/adaptive/" height="420"></demo>

The component supports different popup rendering depending on the screen size. [Read more about the Adaptive Rendering functionality and how to enable it...](https://www.telerik.com/blazor-ui/documentation/common-features/adaptive-rendering)

## MultiColumnComboBox Parameters

> caption The MultiColumnComboBox provides various parameters that allow you to configure the component:

<style>
    .article table {
        table-layout: auto;
        word-break: normal;
    }
</style>

| Parameter         | Type and Default Value                            | Description                                                                                                                                                                                                                                                                                                     |
| ----------------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `AdaptiveMode`    | `AdaptiveMode` <br /> (`None`)                    | The [adaptive mode](https://www.telerik.com/blazor-ui/documentation/common-features/adaptive-rendering) of the component.                                                                                                                                                                                       |
| `AllowCustom`     | `bool`                                            | Determines if the user can enter [custom values](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/custom-value). If enabled, the `ValueField` must be a `string`.                                                                                                                 |
| `ShowClearButton` | `bool`                                            | Displays a clear button inside the input. When it is clicked, the `Value` will change to `default(TValue)`, so there must be no item in the `Data` that has such a `Value`. For example, if `TValue` is `int`, there should be no data item with `0` in its `ValueField`, otherwise selection issues may occur. |
| `Data`            | `IEnumerable<TItem>`                              | The component data.                                                                                                                                                                                                                                                                                             |
| `DebounceDelay`   | `int` <br/> (`150`)                               | The time in milliseconds between the last typed symbol and the internal `oninput` event firing. Applies when the user types and filters. Use it to balance between client-side performance and number of database queries.                                                                                      |
| `Enabled`         | `bool`                                            | Whether the user can interact with the component.                                                                                                                                                                                                                                                               |
| `ReadOnly`        | `bool`                                            | If set to `true`, the component will be readonly and will not allow user input. The component is not readonly by default and allows user input.                                                                                                                                                                 |
| `Filterable`      | `bool`                                            | Enables [filtering](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/filter) for the end user.                                                                                                                                                                                    |
| `FilterOperator`  | `StringFilterOperator` enum <br /> (`StartsWith`) | The [filtering method](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/filter).                                                                                                                                                                                                  |
| `Id`              | `string`                                          | The `id` attribute of the `<input class="k-input-inner" />` element. Use it to attach a `<label for="...">` to the input.                                                                                                                                                                                       |
| `InputMode`       | `string`                                          | The [`inputmode` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode) of the `<input />` element.                                                                                                                                                                          |
| `LoaderShowDelay` | `int ` <br /> 300                                 | Time in milliseconds between opening the popup and showing the loading skeleton in it when the data is not yet available.                                                                                                                                                                                       |
| `Placeholder`     | `string`                                          | The hint text the user sees when no item is selected. The placeholder will shown when the `Value` is set to the default value of the `ValueField` type. For example, `0` for `int`, and `null` for `int?` or `string`.                                                                                          |
| `TItem`           | `Type`                                            | The type of the model. Required if you can't provide `Data` or `Value`. Determines the type of the reference object.                                                                                                                                                                                            |
| `TValue`          | `Type`                                            | The type of the `ValueField` from the model. Required if you can't provide `Data` or `Value`. Determines the type of the reference object. The type of the values can be:<br /> - `number` (`int`, `double`, etc.)<br /> - `string`<br /> - `Guid`<br /> - `Enum`                                               |
| `Title`           | `string`                                          | The title text rendered in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `Auto`](https://www.telerik.com/blazor-ui/documentation/common-features/adaptive-rendering).                                                                                                   |
| `TextField`       | `string` <br /> (`Text`)                          | The name of the model property that will be shown to the user.                                                                                                                                                                                                                                                  |
| `ValueField`      | `string` <br /> (`Value`)                         | The name of the model property that will be the underlying component `Value`.                                                                                                                                                                                                                                   |
| `Value`           | `TValue`                                          | The value of the component. Use the `@bind-Value` syntax for two-way binding.                                                                                                                                                                                                                                   |
| `TabIndex`        | `int?`                                            | The `tabindex` attribute of the `<input class="k-input-inner" />` element. Use it to customize the tabbing (focus) order on the page.                                                                                                                                                                           |

### Styling and Appearance

The following parameters enable you to customize the appearance of the Blazor MultiColumnComboBox:

| Parameter | Type     | Description                                                                                                                                                                                                                                                                                                                                                    |
| --------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Class`   | `string` | The CSS class that will be rendered on the main wrapping element of the component. Use it to [override the theme or apply custom styles](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/override-theme-styles).                                                                                                                            |
| `Width`   | `string` | The width of the component. It will target both the dropdown and the main element if the dropdown has no specific width set. The default `Width` value is null, but the theme applies `100%`. Use the `Width` property or custom CSS to set another value [in any supported unit](https://www.telerik.com/blazor-ui/documentation/common-features/dimensions). |

You can find more options for customizing the MultiColumnComboBox styling in the [Appearance article](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/appearance).

### Popup settings

The popup of the component can be additionally customized via nested tags:

<div class="skip-repl"></div>

<demo metaUrl="client/multicolumncombobox/overview/example-2/" height="420"></demo>

The MultiColumnComboBox provides the following popup settings:

| Parameter           | Type     | Description                                                                                                                                                          |
| ------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `AnimationDuration` | `int`    | The animation duration of the popup in milliseconds.                                                                                                                 |
| `Class`             | `string` | Additional CSS class to customize the appearance of the popup.                                                                                                       |
| `MinWidth`          | `string` | The minimum width of the popup.                                                                                                                                      |
| `MaxWidth`          | `string` | The maximum width of the popup.                                                                                                                                      |
| `Width`             | `string` | The width of the popup. If you don't specify a value, the dropdown width will match the anchor element width which can help with responsive layouts and 100% widths. |

## Component Reference and Methods

Add a reference to the component instance to use the [MultiColumnComboBox's methods](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.components.telerikmulticolumncombobox-2). Note that the [MultiColumnComboBox is a generic component](https://www.telerik.com/blazor-ui/documentation/common-features/data-binding/overview#component-type).

| Method       | Description                                                                                                                         |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| `Close`      | Closes the component dropdown.                                                                                                      |
| `FocusAsync` | Focuses the component textbox.                                                                                                      |
| `Open`       | Opens the component dropdown.                                                                                                       |
| `Rebind`     | [Refreshes the component data](https://www.telerik.com/blazor-ui/documentation/common-features/data-binding/overview#refresh-data). |
| `Refresh`    | Re-renders the component popup.                                                                                                     |

> caption Using MultiColumnComboBox methods

<demo metaUrl="client/multicolumncombobox/overview/example-3/" height="420"></demo>

## Next Steps

* [Bind the MultiColumnComboBox to data](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/data-bind)
* [Enable MultiColumnComboBox filtering](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/filter)
* [Allow custom MultiColumnComboBox value](https://www.telerik.com/blazor-ui/documentation/components/multicolumncombobox/custom-value)

## See Also

* [Live Demo: MultiColumnComboBox](https://demos.telerik.com/blazor-ui/multicolumncombobox/overview)
* [Live Demo: MultiColumnComboBox Validation](https://demos.telerik.com/blazor-ui/multicolumncombobox/validation)
