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

BackwardCompatibilitySettings.OptimizeErrorMessageDisplayForDataAnnotationValidationInEditors Property

Specifies whether the editor automatically renders extra space for the error message based on the specified conditions.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

public bool OptimizeErrorMessageDisplayForDataAnnotationValidationInEditors { get; set; }

Property Value

Type Description
Boolean

true, to automatically render extra space for the error message based on the specified conditions; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to OptimizeErrorMessageDisplayForDataAnnotationValidationInEditors
ASPxWebControl
.BackwardCompatibility .OptimizeErrorMessageDisplayForDataAnnotationValidationInEditors

Remarks

Note

In version 19.1, we’ve changed this API behavior for code consistency.

Breaking Change: The The ValidationSettings.Display property is set to Dynamic if it was not modified by a user and a corresponding model property has the Required or RegularExpression attributes topic illustrates details and describes how to revert to the previous behavior.

Example

void Application_Start(object sender, EventArgs e) { 
    ASPxWebControl.BackwardCompatibility.OptimizeErrorMessageDisplayForDataAnnotationValidationInEditors = false; 
}   
See Also