Skip to main content
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.v24.2.dll

Declaration

[DefaultValue(true)]
public bool OptimizeErrorMessageDisplayForDataAnnotationValidationInEditors { get; set; }

Property Value

Type Default Description
Boolean true

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