ASPxGridDataSecuritySettings.PreventLoadClientValuesForReadOnlyColumns Property
Specifies whether to load read-only column values from the client to the server side.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
[DefaultValue(DefaultBoolean.Default)]
public virtual DefaultBoolean PreventLoadClientValuesForReadOnlyColumns { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default | An enumeration value. |
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
Remarks
Use the PreventLoadClientValuesForReadOnlyColumns property to specify whether to load read-only column values from the client to the server side in the ASPxGridView, ASPxCardView and ASPxVerticalGrid controls.
ASPxGridView.SettingsDataSecurity.PreventLoadClientValuesForReadOnlyColumns = DefaultBoolean.True;
ASPxCardView.SettingsDataSecurity.PreventLoadClientValuesForReadOnlyColumns = DefaultBoolean.True;
ASPxVerticalGrid.SettingsDataSecurity.PreventLoadClientValuesForReadOnlyColumns = DefaultBoolean.True;
If the PreventLoadClientValuesForReadOnlyColumns property is set to Default, access to read-only values from the server side depends upon the DataControlPreventLoadClientValuesForReadOnlyColumns property setting.
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).
The PreventLoadClientValuesForReadOnlyColumns property has priority over the DataControlPreventLoadClientValuesForReadOnlyColumns property.