Skip to main content

ASPxButton.AllowFocus Property

Gets or sets a value specifying whether the button can receive focus.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public bool AllowFocus { get; set; }

Property Value

Type Default Description
Boolean true

true, if the button can receive focus; otherwise, false.


Use the ASPxButton.FocusRectBorder property to get access to the focus rectangle’s settings which define the width, style, and color.


Refer to the following demo for a full example: Button - Appearance Customization.

<dx:ASPxButton ID="btnBlueBall" runat="server" AutoPostBack="False" AllowFocus="False" RenderMode="Link">
    <!-- ... -->
See Also