Skip to main content
Tab

ASPxEdit.IsValid Property

Gets or sets a value that indicates whether the editor’s value passes validation.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web

Declaration

public virtual bool IsValid { get; set; }

Property Value

Type Description
Boolean

true if the editor’s value passes validation; otherwise, false.

Remarks

If the ValidationSettings.EnableCustomValidation property is set to true, the IsValid property can be used to specify whether the editor’s value (ASPxEdit.Value) meets your validation criteria, and can be posted to the editor being validated.

If the entered value is not valid, you can set the IsValid property to false. In this case, the value will not be posted to the editor and a error text specified by the ASPxEdit.ErrorText property will be displayed. Or, you can correct the entered value manually by updating the editor’s value and leaving the IsValid value set to true. In this case, the corrected value will be written to the editor.

See Also