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.v24.2.dll
Declaration
[DefaultValue(true)]
public bool DataEditorsPreventLoadClientValuesForReadOnlyControls { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Property Paths
You can access this nested property as listed below:
Object Type | Path to DataEditorsPreventLoadClientValuesForReadOnlyControls |
---|---|
ASPxWebControl |
|
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