aspnet-devexpress-dot-web-a74dbc3a.md
Specifies how the editor error message is rendered.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public enum Display
Public Enum Display
| Name | Description | Image |
|---|---|---|
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:
<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