Skip to main content
All docs
V25.1
  • ASPxDashboard.DataSourceCacheEnabled Property

    Specifies whether the Web Dashboard Control caches its data sources.

    Namespace: DevExpress.DashboardWeb

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

    NuGet Package: DevExpress.Web.Dashboard

    Declaration

    [DefaultValue(true)]
    public bool DataSourceCacheEnabled { get; set; }

    Property Value

    Type Default Description
    Boolean true

    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:

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