ASPxGridDataSecuritySettings.AllowReadUnexposedColumnsFromClientApi Property
Specifies whether to disable client-side access to data source fields that are bound to columns and these columns are hidden in the control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v20.2.dll
NuGet Package: DevExpress.Web
Declaration
[DefaultValue(DefaultBoolean.Default)]
public virtual DefaultBoolean AllowReadUnexposedColumnsFromClientApi { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | **Default** | One of the DefaultBoolean 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 AllowReadUnexposedColumnsFromClientApi |
---|---|---|
ASP.NET Controls and MVC Extensions | ASPxCardView |
|
ASPxGridView |
|
|
ASPxVerticalGrid |
|
|
GridViewProperties |
|
|
ASP.NET Bootstrap Controls | BootstrapCardView |
|
BootstrapGridView |
|
|
ASP.NET MVC Extensions | CardViewSettings |
|
CardViewSettings<CardType> |
|
|
GridViewSettings |
|
|
GridViewSettings<RowType> |
|
|
MVCxCardView |
|
|
MVCxGridView |
|
|
MVCxGridViewProperties |
|
|
MVCxVerticalGrid |
|
|
VerticalGridSettings |
|
|
VerticalGridSettings<ColumnType> |
|
Remarks
Use the AllowReadUnexposedColumnsFromClientApi property to restrict access to data source fields that are bound to columns and these columns are hidden in the ASPxGridView, ASPxCardView, and ASPxVerticalGrid controls.
ASPxGridView.SettingsDataSecurity.AllowReadUnexposedColumnsFromClientApi = DefaultBoolean.True;
ASPxCardView.SettingsDataSecurity.AllowReadUnexposedColumnsFromClientApi = DefaultBoolean.True;
ASPxVerticalGrid.SettingsDataSecurity.AllowReadUnexposedColumnsFromClientApi = DefaultBoolean.True;
If the AllowReadUnexposedColumnsFromClientApi property is set to Default, the client-side access to the data source’s unexposed fields depends upon the BackwardCompatibilitySettings.DataControlAllowReadUnexposedColumnsFromClientApiDefaultValue property setting.
Note
In version 18.1, we’ve changed this API behavior to improve data security of grid-like DevExpress web controls.
Breaking Change: The Specificity of accessing data field values from a client API of grid-like web controls topic illustrates details and describes how to revert to the previous behavior (degrading data security).
The AllowReadUnexposedColumnsFromClientApi property has priority over the BackwardCompatibilitySettings.DataControlAllowReadUnexposedColumnsFromClientApiDefaultValue property.