Skip to main content
Tab

ValidationSettings.ErrorDisplayMode Property

Gets or sets a value that specifies how an error message is displayed within the editor’s error frame.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public abstract ErrorDisplayMode ErrorDisplayMode { get; set; }

Property Value

Type Description
ErrorDisplayMode

One of the ErrorDisplayMode enumeration values.

Available values:

Name Description
Text

An error message is represented by text only.

ASPxEditors_Text

ImageWithTooltip

An error message is represented by an error image. The image’s tooltip displays an error text. If an assigned error image is incorrect, an error message is represented by an error text directly.

ASPxEditors_ImageWithTooltip

ImageWithText

An error message is represented by both an error image and error text.

ASPxEditors_ ImageWithText

None

No error message is displayed, a specific error frame is displayed near the editor instead.

ASPxEditors_None

Property Paths

You can access this nested property as listed below:

Object Type Path to ErrorDisplayMode
ASPxEdit
.ValidationSettings .ErrorDisplayMode
EditProperties
.ValidationSettings .ErrorDisplayMode

Remarks

The default value of this property depends upon whether an editor is used as standalone or as inplace (for instance, within the ASPxGridView control).

Example

The following part of the Masked Input online demo, illustrates how to set the mask for the ASPxTextBox.

<dx:ASPxTextBox ID="txtZip" runat="server" Width="150">
     <MaskSettings Mask="00000" ErrorText="Please input missing digits" />
     <ValidationSettings ErrorDisplayMode="ImageWithTooltip" />
</dx:ASPxTextBox> 
See Also