Back to Devexpress

ValidationSettings.SetFocusOnError Property

aspnet-devexpress-dot-web-dot-validationsettings-781406f4.md

latest1.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool SetFocusOnError { get; set; }
vb
<DefaultValue(False)>
Public Property SetFocusOnError As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to SetFocusOnError
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

Validation Error Message

Validation

ValidationSettings Class

ValidationSettings Members

DevExpress.Web Namespace