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

ASPxButton.AllowFocus Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(true)]
public bool AllowFocus { get; set; }

Property Value

Type Default Description
Boolean **true**

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

Remarks

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

Example

The complete sample project is available in the DevExpress Code Central database at E143.

function OnExpandCollapseButtonClick(s, e) {
    var isVisible = ContentPanel.GetClientVisible();
    s.SetText(isVisible ? "+" : "-");
    ContentPanel.SetClientVisible(!isVisible);
}
See Also