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

ASPxEdit.IsValid Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public virtual bool IsValid { get; set; }
Public Overridable Property IsValid As Boolean

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.

Implements

DevExpress.Web.Internal.IValidationSummaryEditor.IsValid
See Also