BackwardCompatibilitySettings.DataControlPreventLoadClientValuesForReadOnlyColumns Property
Specifies whether to prevent grid-like controls from loading their read-only column values from the client to the server.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
[DefaultValue(true)]
public bool DataControlPreventLoadClientValuesForReadOnlyColumns { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Property Paths
You can access this nested property as listed below:
Object Type | Path to DataControlPreventLoadClientValuesForReadOnlyColumns |
---|---|
ASPxWebControl |
|
Remarks
The DataControlPreventLoadClientValuesForReadOnlyColumns property controls access to client values of read-only columns on the server side if grid-like controls’ PreventLoadClientValuesForReadOnlyColumns and/or PreventLoadClientValuesForReadOnlyColumns properties are set to Default.
Note
In version 17.2, we’ve changed this API behavior to improve data security of grid-like DevExpress web controls.
Breaking Change: The A read-only column’s editors reset client values to initial server values topic illustrates details and describes how to revert to the previous behavior (degrading data security).
Example
The following example demonstrates how to allow grid-like controls to load their read-only column values from the client to the server:
void Application_Start(object sender, EventArgs e) {
ASPxWebControl.BackwardCompatibility.DataControlPreventLoadClientValuesForReadOnlyColumns = false;
}