[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Gauges
  [Expand]Vertical Grid
  [Collapse]Data Editors
   [Expand]ASPxBinaryImage
   [Expand]Product Information
   [Expand]ASPxButton
   [Collapse]Common Concepts
     Binding to Data
    [Expand]Mask Editing
    [Collapse]Validation
      Validation Overview
      Validation Settings
      Validation Error Message
      Validation Summary
     [Expand]Examples
    [Expand]List Editors
     Accessibility Support
    ASPxButtonEdit
   [Expand]ASPxCalendar
    ASPxCheckBox
    ASPxCheckBoxList
   [Expand]ASPxColorEdit
   [Expand]ASPxComboBox
   [Expand]ASPxDateEdit
   [Expand]ASPxDropDownEdit
   [Expand]ASPxFilterControl
   [Expand]ASPxHyperLink
    ASPxImage
    ASPxLabel
   [Expand]ASPxListBox
   [Expand]ASPxMemo
   [Expand]ASPxProgressBar
    ASPxRadioButton
   [Expand]ASPxRadioButtonList
   [Expand]ASPxSpinEdit
    ASPxTextBox
    ASPxTimeEdit
   [Expand]ASPxTokenBox
   [Expand]ASPxTrackBar
    ASPxValidationSummary
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Validation Error Message

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.
ImageWithTooltip An error message is represented by an error image. The image's tooltip displays the error text.
Text An error message is represented by error text only.
None A specific error frame is displayed near the editor.

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

Note

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.

 
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.

Expanded See Also

Is this topic helpful?​​​​​​​