Skip to main content
A newer version of this page is available. .
Tab

ClearButton Class

Implements the Clear button functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public class ClearButton :
    EditButton

Remarks

DevExpress editors can display a Clear button that allows clearing the editor value. The button is displayed when the editor is hovered or focused, and is not empty. The ClearButton class implements the Clear button functionality.

ClearButton

Add Clear Button to Editors

Note

The ClearButton object is not in effect in the Buttons collection. Instead, use the ClearButton property to customize the ‘Clear’ button.

<dx:ASPxButtonEdit ID="ASPxButtonEdit2" runat="server">
    <Buttons>
        ...
    </Buttons>
    <ClearButton DisplayMode="Always"></ClearButton>
</dx:ASPxButtonEdit>

Online Demo: Clear Button

See Also