DataEditorClearButtonDisplayMode Enum

Lists values that specify when the Clear button is displayed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

public enum DataEditorClearButtonDisplayMode

Members

Name Description
Auto

The Clear button is displayed when an editor is not empty and is not in the read-only state. This mode requires that the editor's data type is nullable.

Never

The Clear button is not displayed.

Remarks

The Clear button allows users to clear (set to NULL) an editor value. The button is displayed when the editor is not empty and is not in the read-only state.

IMPORTANT

This mode requires that the editor's data type is nullable.

Use the editor's ClearButtonDisplayMode property to specify the Clear button's visibility. For example, the code below shows the Clear button in the DxComboBox<TData, TValue>.

<DxComboBox Data="@DataSource"
            ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"></DxComboBox>

@code {
    List<Options> DataSource;
}

ComboBox Clear Button

Run Demo: ComboBox - Clear Button and Placeholder

See Also