Skip to main content

DxComboBox<TData, TValue>.AllowUserInput Property

Specifies whether users are allowed to input custom values in a ComboBox editor.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

Declaration

[DefaultValue(false)]
[Parameter]
public bool AllowUserInput { get; set; }

Property Value

Type Default Description
Boolean false

true if users can enter new values in the input box; false if users can only select ComboBox values from the drop-down window.

Remarks

If AllowUserInput is set to true, users can enter custom values in the input box. Custom values are not added to the data source or drop-down window. If AllowUserInput is set to false, users can only select existing ComboBox values from the drop-down window.

<DxComboBox AllowUserInput="true" Data="@Data" @bind-Value="@Value"></DxComboBox>

Run Demo: ComboBox - Allow Input

To access an editor’s value when AllowUserInput is set to true, use the Text property.

See Also