ASPxDashboard.DataSourceCacheEnabled Property
Specifies whether the Web Dashboard Control caches its data sources.
Namespace: DevExpress.DashboardWeb
Assembly: DevExpress.Dashboard.v24.2.Web.WebForms.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Remarks
The Web Dashboard Control uses a caching mechanism to improve performance when working with data sources. For more information on the caching mechanism, refer to the following topic: Manage an In-Memory Data Cache.
Set the DataSourceCacheEnabled
property to false
to disable data source caching. In that configuration, each time a dashboard item requests data, the control sends a query to the database. ConfigureDataConnection and DataLoading events fire with every query.
The following code snippet disables cache in the ASPxDashboard control:
<dx:ASPxDashboard ID="ASPxDashboard1" runat="server"
DataSourceCacheEnabled="false">
</dx:ASPxDashboard>