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

ValidationSettings.SetFocusOnError Property

Gets or sets a value that specifies whether focus is set to the editor when validation fails.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool SetFocusOnError { get; set; }

Property Value

Type Default Description
Boolean false

true to set focus on the editor when validation fails; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to SetFocusOnError
ASP.NET Bootstrap Controls BootstrapSchedulerDateNavigatorProperties
.ValidationSettings .SetFocusOnError
ASP.NET Web Forms Controls ASPxEdit
.ValidationSettings .SetFocusOnError
EditProperties
.ValidationSettings .SetFocusOnError

Remarks

Use the SetFocusOnError property to specify whether focus is automatically set to the editor when this validation control fails. This allows the user to quickly update the editor’s invalid value.

See Also