Tab
A newer version of this page is available. Switch to the current version.

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; }
<DefaultValue(True)>
Public Property AllowFocus As Boolean

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.

Examples

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);
}