Back to Devexpress

ValidationSettings.ErrorDisplayMode Property

aspnet-devexpress-dot-web-dot-validationsettings-48a1112a.md

latest3.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public abstract ErrorDisplayMode ErrorDisplayMode { get; set; }
vb
Public MustOverride Property ErrorDisplayMode As ErrorDisplayMode

Property Value

TypeDescription
ErrorDisplayMode

One of the ErrorDisplayMode enumeration values.

|

Available values:

NameDescription
Text

An error message is represented by text only.

| | 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.

| | ImageWithText |

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

| | None |

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

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

See Also

Validation Error Message

Validation

ValidationSettings Class

ValidationSettings Members

DevExpress.Web Namespace