ASPxEdit.ErrorText Property
Gets or sets an error text to be displayed within an editor’s error frame if the editor’s custom validation fails.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v20.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
String | A String value that specifies the error text. |
Remarks
The ErrorText property allows you to specify an error text to be displayed if the editor’s custom validation fails. If the ASPxEdit.IsValid property is set to false, the text will be displayed within a specific error frame.
If the ErrorText property value is empty, the ValidationSettings.ErrorText property value is used instead.
You can override an error text within validation events, via the ASPxClientEditValidationEventArgs.errorText parameter of the client-side ASPxClientEdit.Validation event or via the ValidationEventArgs.ErrorText parameter of the server-side ASPxEdit.Validation event.
To learn more see the Validation Error Message topic.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ErrorText property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.