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

BackwardCompatibilitySettings.DataEditorsPreventLoadClientValuesForReadOnlyControls Property

Specifies whether to prevent editors from loading their read-only values from the client to the server.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

public bool DataEditorsPreventLoadClientValuesForReadOnlyControls { get; set; }

Property Value

Type Description
Boolean

true to prevent editors from loading their read-only values to the server; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to DataEditorsPreventLoadClientValuesForReadOnlyControls
ASPxWebControl
.BackwardCompatibility .DataEditorsPreventLoadClientValuesForReadOnlyControls

Remarks

In v20.2, we changed the default value of this property to true. This change was made for security-related reasons. Refer to the following breaking change topic for more information: A read-only editor resets client values to initial server values.

Use the following example to revert to the previous behavior and allow editors to load read-only values from the client to the server.

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