Skip to main content
A newer version of this page is available. .

Validation Error Message

  • 3 minutes to read

You can display an error message when an editor fails validation logic. The ValidationSettings.ErrorDisplayMode property specifies the elements (error text, error image, or error frame) to display within the message.

ErrorDisplayMode property value Description Image
ImageWithText An error message displays both an error image and error text. ASPxEditors_ ImageWithText
ImageWithTooltip An error message displays an error image with a tooltip (shown when the mouse pointer hovers over the image). The image tooltip displays the error text. ASPxEditors_ImageWithTooltip
Text An error message displays error text only. ASPxEditors_Text
None The editor displays a frame to indicate an error. ASPxEditors_None

You can use properties accessed from the ASPxEdit.ValidationSettings property to customize error message elements.

Note

Do any of the following to render an error frame:

Otherwise, the editor does not render an error frame on the client side, as this is unnecessary.

However, in some scenarios you may need to validate an editor 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.

 

Note

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