ASPxVerticalGrid.EnableRecordsCache Property
Gets or sets whether data caching is enabled.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
#Remarks
By default, the ASPxVerticalGrid stores data in memory for quick access. This avoids repeated database calls when performing various operations that don’t require reloading data (e.g., rearranging or hiding rows). As a result, this increases the Web application scalability.
To disable data caching, set the EnableRecordsCache option to false
. This can be useful, for instance, when the ASPxVerticalGrid displays real-time data. It’s also recommended that you disable this option when binding to data created at runtime, because calling the DataBind() method always reloads data from the server.
Note
The Enable
Note
If you use custom objects that utilize a referenced association, the ASPx
Type
One solution is to turn off the ASPx
property. This solution is acceptable when the page doesn’t have several grids, and in most cases, doesn’t affect page performance significantly.
However, you can implement a custom Type