Skip to main content

DxTagBox<TData, TValue>.ClearButtonDisplayMode Property

Specifies whether the TagBox displays the Clear button when it is not empty.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.2.dll

NuGet Package: DevExpress.Blazor


public DataEditorClearButtonDisplayMode ClearButtonDisplayMode { get; set; }

Property Value

Type Default Description
DataEditorClearButtonDisplayMode Never

A DataEditorClearButtonDisplayMode enumeration value.

Available values:

Name Description

The clear button is visible when an editor is not empty.


The clear button is not visible.


The Clear button clears the editor’s value (sets it to NULL). To display this button in the editor when there is a value in it, set the ClearButtonDisplayMode property to DataEditorClearButtonDisplayMode.Auto This mode also requires that the editor’s data type is nullable.

When users clear the editor’s value, the TagBox displays the NullText string (if specified).

<DxTagBox NullText="Select countries..."
          ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto" />

@code {
    IEnumerable<Country> SelectedCountries { get; set; }

TagBox Clear Button

Run Demo: TagBox - Clear Button and Placeholder

See Also