ValidationSettings.ErrorTextPosition Property
Gets or sets the error text’s position within the error frame relative to the validated control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.1.dll
Declaration
[DefaultValue(ErrorTextPosition.Right)]
public ErrorTextPosition ErrorTextPosition { get; set; }
Property Value
Type | Default | Description |
---|---|---|
ErrorTextPosition | **Right** | One of the ErrorTextPositionenumeration values. |
Available values:
Name | Description |
---|---|
Top | An error text is displayed at the top of the validated control. |
Right | An error text is displayed at the right of the validated control. |
Bottom | An error text is displayed at the bottom of the validated control. |
Left | An error text is displayed at the left of the validated control. |
Property Paths
You can access this nested property as listed below:
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-check-the-validation-state-of-editors-using-the-areeditorsvalid-method-e1844
<dx:ASPxTextBox ID="tbEMail" runat="server" Size="49" NullText="Enter e-mail ..." Font-Size="Small">
<ValidationSettings EnableCustomValidation="True" ErrorDisplayMode="Text" ErrorTextPosition="Bottom" SetFocusOnError="true">
<ErrorFrameStyle Font-Size="Smaller"/>
<RegularExpression ValidationExpression="^\w+([-+.'%]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
ErrorText="Invalid e-mail"/>
<RequiredField IsRequired="True" ErrorText="E-mail is required"/>
</ValidationSettings>
<NullTextStyle Font-Size="Small"/>
</dx:ASPxTextBox>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ErrorTextPosition property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.