ASPxGridDataSecuritySettings.PreventLoadClientValuesForReadOnlyColumns Property
Specifies whether to load read-only column values from the client to the server side.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.2.dll
Declaration
[DefaultValue(DefaultBoolean.Default)]
public virtual DefaultBoolean PreventLoadClientValuesForReadOnlyColumns { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | **Default** | An enumeration value. |
Available values:
Name | Description |
---|---|
True | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The value is determined by the current object’s parent object setting (e.g., a control setting). |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to PreventLoadClientValuesForReadOnlyColumns |
---|---|---|
ASP.NET Controls and MVC Extensions | ASPxCardView |
|
ASPxGridView |
|
|
ASPxVerticalGrid |
|
|
GridViewProperties |
|
|
CardViewSettings |
|
|
CardViewSettings<CardType> |
|
|
GridViewSettings |
|
|
GridViewSettings<RowType> |
|
|
MVCxCardView |
|
|
MVCxGridView |
|
|
MVCxGridViewProperties |
|
|
MVCxVerticalGrid |
|
|
VerticalGridSettings |
|
|
VerticalGridSettings<ColumnType> |
|
|
ASP.NET Bootstrap Controls | BootstrapCardView |
|
BootstrapGridView |
|
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.