Back to Devexpress

ASPxDashboard.DataSourceCacheEnabled Property

dashboard-devexpress-dot-dashboardweb-dot-aspxdashboard-6b791f4e.md

latest2.4 KB
Original Source

ASPxDashboard.DataSourceCacheEnabled Property

Specifies whether the Web Dashboard Control caches its data sources.

Namespace : DevExpress.DashboardWeb

Assembly : DevExpress.Dashboard.v25.2.Web.WebForms.dll

NuGet Package : DevExpress.Web.Dashboard

Declaration

csharp
[DefaultValue(true)]
public bool DataSourceCacheEnabled { get; set; }
vb
<DefaultValue(True)>
Public Property DataSourceCacheEnabled As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to enable data source caching; otherwise, false.

|

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:

aspx
<dx:ASPxDashboard ID="ASPxDashboard1" runat="server"
    DataSourceCacheEnabled="false">
</dx:ASPxDashboard>

See Also

Manage an In-Memory Data Source Cache in ASP.NET Web Forms

ASPxDashboard Class

ASPxDashboard Members

DevExpress.DashboardWeb Namespace