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
Property Value
Type | Description |
---|---|
ErrorDisplayMode | One of the ErrorDisplayMode enumeration values. |
Available values:
Name | Description |
---|---|
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 Type | Path to ErrorDisplayMode |
---|---|
ASPxEdit |
|
EditProperties |
|
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).
- For a standalone editor, the property default value is ErrorDisplayMode.ImageWithText.
- For an inplace editor, the property default value is ErrorDisplayMode.ImageWithTooltip.
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>