Validation Error Message

  • 3 minutes to read

When an editor fails validation logic, an error message can be displayed. You can specify what elements (error text, error image, or error frame) are displayed within the message, using the ValidationSettings.ErrorDisplayMode property.

ErrorDisplayMode property value Description Image
ImageWithText An error message is represented by both an error image and error text. ASPxEditors_ ImageWithText
ImageWithTooltip An error message is represented by an error image. The image's tooltip displays the error text. ASPxEditors_ImageWithTooltip
Text An error message is represented by error text only. ASPxEditors_Text
None A specific error frame is displayed near the editor. ASPxEditors_None

You can customize error message elements using properties accessed via the ASPxEdit.ValidationSettings property.


An error frame is automatically rendered on the client side in the following situations.

Otherwise, the error frame is not rendered on the client side, as this is unnecessary.

However, in some scenarios you need to perform the editor's validation totally by yourself, without using any predefined validation capabilities. In these cases, set the ValidationSettings.EnableCustomValidation property to true to force the editor to render the error frame on the client side.



If an editor's Native property is set to true, the editor is rendered in native mode using a standard HTML element. In this case, the editor is painted in browser's native style and its appearance depends upon the browser settings only. So DevExpress style settings (e.g. ValidationSettings.ErrorDisplayMode, ValidationSettings.ErrorFrameStyle , etc.) are not in effect.

See Also