Skip to main content
A newer version of this page is available. .
Tab

ValidationSettings.ErrorFrameStyle Property

Gets the style properties for the editor’s error frame.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

public ErrorFrameStyle ErrorFrameStyle { get; }

Property Value

Type Description
ErrorFrameStyle

An ErrorFrameStyle object that contains style settings.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ErrorFrameStyle
ASP.NET Bootstrap Controls BootstrapSchedulerDateNavigatorProperties
.ValidationSettings .ErrorFrameStyle
ASP.NET Web Forms Controls ASPxEdit
.ValidationSettings .ErrorFrameStyle
EditProperties
.ValidationSettings .ErrorFrameStyle

Remarks

Use the ErrorFrameStyle property to define the appearance of the editor’s error frame. The error frame is displayed if the editor’s value has not passed validation criteria specified.

Example

View Example

<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>
See Also