Skip to main content
Tab

ClearButton.DisplayMode Property

Controls the Clear Button availability in a non-empty editor’s text box.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(ClearButtonDisplayMode.Auto)]
public ClearButtonDisplayMode DisplayMode { get; set; }

Property Value

Type Default Description
ClearButtonDisplayMode Auto

One of the ClearButtonDisplayMode enumeration values.

Available values:

Name Description
Auto

The clear button is displayed on touch devices only.

Never

The clear button is not displayed.

OnHover

The clear button is displayed when an editor is hovered or focused.

Always

The clear button is always visible except for empty editors.

Remarks

The Clear button allows end-users to clear an editor value, i.e., to set the editor value to null. The button is displayed when the editor is not empty.

Use the DisplayMode property to specify the visibility of the clear button.

ClearButton

Note

For ASPxComboBox control only.

When the DisplayMode property is set to Auto, the Clear button is displayed on touch devices only, when the editor’s ASPxComboBox.DropDownStyle property is not set to DropDownList.

Note

For ASPxColorEdit, ASPxDateEdit, and ASPxTimeEdit controls only.

When the DisplayMode property is set to Auto, the Clear button is displayed on touch devices only when the editor’s AllowNull property is set to true.

Note

For ASPxGridView control only.

When the DisplayMode property is set to Auto, the Clear button is always displayed in the search panel and filter row.

See Also