VerticalGridSettings.EnableRecordsCache Property
Gets or sets whether data caching is enabled.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true, to enable data caching; otherwise, false. The default is false. |
#Remarks
The VerticalGrid extension is able to store its data (the data of the current grid page) in memory for quick access. This might help avoid repeated database calls when performing various operations that don’t require reloading data (e.g., rearranging or hiding rows). For instance, this can be useful when the VerticalGrid is used in Database Server Mode - to reduce the number of database calls. To enable data caching, set the EnableRecordsCache option to true.
By default, data caching is disabled for the VerticalGrid. It is recommended that you leave the EnableRecordsCache property disabled in the following cases:
- The VerticalGrid displays real-time data.
- The VerticalGrid is bound to data created at runtime (because calling the Bind method always reloads data from the server).
- The VerticalGrid contains a BinaryImage row - a row whose MVCxVerticalGridRow.RowType property is set to MVCxVerticalGridRowType.BinaryImage (because preserving binary data in the record cache might dramatically increase the cache size and affect the application performance).
Note that the EnableRecordsCache option must be disabled when the VerticalGrid is used in Custom Data Binding mode.
Note
If you use custom objects that utilize a referenced association, the Vertical
Type
One solution is to turn off the Enable
However, you can implement a custom Type