Back to Devexpress

ClearButton Class

aspnet-devexpress-dot-web-dbfaa986.md

latest2.6 KB
Original Source

ClearButton Class

Implements the Clear button functionality.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ClearButton :
    EditButton
vb
Public Class ClearButton
    Inherits EditButton

The following members return ClearButton objects:

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.

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.

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

Online Demo : Clear Button

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem EditButton ClearButton BootstrapClearButton

See Also

ClearButton Members

Online Demo: Data Editors - Null Text

Online Demo: Data Editors - Clear Button

DevExpress.Web Namespace