DataEditorClearButtonDisplayMode Enum
Lists values that specify when the Clear button is displayed.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v21.2.dll
NuGet Package: DevExpress.Blazor
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. |
Related API Members
The following properties accept/return DataEditorClearButtonDisplayMode values:
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;
}