Skip to main content

ASPxButtonEditBase.ClearButton Property

Gets the settings of the editor’s Clear button.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public virtual ClearButton ClearButton { get; }

Property Value

Type Description

A ClearButton object that contains button settings.


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 ID="PasswordTextBox" runat="server" NullText="Enter your password..." Password="true" >
    <ClearButton DisplayMode="OnHover"></ClearButton>


Run Demo: Data Editors - Null Text

See Also