Back to Devexpress

Display Enum

aspnet-devexpress-dot-web-a74dbc3a.md

latest2.3 KB
Original Source

Display Enum

Specifies how the editor error message is rendered.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public enum Display
vb
Public Enum Display

Members

NameDescriptionImage
Static

An editor initially renders an empty space reserved for the error message.

|

| | Dynamic |

An editor renders the space for the error message dynamically at the moment the editor fails validation.

|

| | None |

No error message is displayed.

| |

The following properties accept/return Display values:

Remarks

aspx
<div class="caption">
    <dx:ASPxLabel runat="server" ID="Label1" AssociatedControlID="TextBox1" Text="Dynamic:" />
</div>
<div class="editor">
    <dx:ASPxTextBox runat="server" EnableClientSideAPI="True" Width="100%" ID="TextBox1">
        <ValidationSettings Display="Dynamic">
            <RequiredField IsRequired="True" ErrorText="Value is required" />
        </ValidationSettings>
        <InvalidStyle BackColor="LightPink" />
    </dx:ASPxTextBox>
</div>
<div class="caption">
    <dx:ASPxLabel runat="server" ID="Label2" AssociatedControlID="TextBox2" Text="Static:" />
</div>
<div class="editor">
    <dx:ASPxTextBox runat="server" EnableClientSideAPI="True" Width="100%" ID="TextBox2">
        <ValidationSettings Display="Static" >
            <RequiredField IsRequired="True" ErrorText="Value is required" />
        </ValidationSettings>
        <InvalidStyle BackColor="LightPink" />
    </dx:ASPxTextBox>
</div>

See Also

DevExpress.Web Namespace