Skip to main content
Tab

ASPxButtonEditBase.ClearButton Property

Gets the settings of the editor’s Clear button.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public virtual ClearButton ClearButton { get; }

Property Value

Type Description
ClearButton

A ClearButton object that contains button settings.

Remarks

The Clear button allows users to clear the editor value. The button is displayed when the editor is hovered or focused, and is not empty. Use the ClearButton property to access and customize the settings of the Clear button.

<dx:ASPxButtonEdit ID="TextBox" runat="server" NullText="Enter your name...">
    <ClearButton DisplayMode="OnHover"></ClearButton>
</dx:ASPxButtonEdit>

<dx:ASPxButtonEdit ID="PasswordTextBox" runat="server" NullText="Enter your password..." Password="true" >
    <ClearButton DisplayMode="OnHover"></ClearButton>
</dx:ASPxButtonEdit>

ClearButton

Run Demo: Data Editors - Null Text

See Also