# ComboBox Custom Values

The ComboBox component allows the user to type in their own value that is not a part of the predefined set of options that the developer provided.

The text entered by the user can still go into the field the combo box is bound to through two-way binding.

To enable custom user input set the `AllowCustom` parameter to `true`.

> note When custom values are enabled, the `TextField`, `ValueField` and the `Value` must be of type `string`. Otherwise an exception will be thrown. Strings are required because the user input can take any form and may not be parsable to other types (such as numbers or GUID).

When custom input is allowed, the [ValueChanged event](https://www.telerik.com/blazor-ui/documentation/components/combobox/events) fires on every keystroke, and not when an item is selected, because the ComboBox component acts as a text input.

When custom values are typed in, there may be no selected item in the ComboBox. See the [ComboBox Overview - Selected Item](https://www.telerik.com/blazor-ui/documentation/components/combobox/overview#selected-item) article for details on when how item selection and `Value` work together.

> caption Allow custom user input in the combo box

<demo metaUrl="client/combobox/custom-value/allow-custom/" height="250"></demo>

> caption How to add custom user values into the data source so they are available as items immediately

<demo metaUrl="client/combobox/custom-value/add-item/" height="300"></demo>

## Limitations

* `AllowCustom` is not compatible with [Adaptive rendering](https://www.telerik.com/blazor-ui/documentation/common-features/adaptive-rendering).

## See Also

* [Live Demo: ComboBox Custom Values](https://demos.telerik.com/blazor-ui/combobox/custom-values)
