DashboardTypeStorage Class

A storage of dashboards created at design time within Visual Studio.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v18.2.Web.dll

Declaration

public class DashboardTypeStorage :
    IEditableDashboardStorage,
    IDashboardStorage,
    IServiceDataConnectionParametersProvider,
    IServiceCustomParametersProvider
Public Class DashboardTypeStorage
    Implements IEditableDashboardStorage,
               IDashboardStorage,
               IServiceDataConnectionParametersProvider,
               IServiceCustomParametersProvider

To use the DashboardTypeStorage as a dashboard storage, initialize it and pass the resulting object to the ASPxDashboard.SetDashboardStorage or DashboardConfigurator.SetDashboardStorage method.

Note

You can use DashboardTypeStorage only in the WorkingMode.ViewerOnly mode.

Examples

The following code snippet shows how to create a DashboardTypeStorage, add two dashboards created at design time to this storage and load a dashboard with the 'Dashboard2' type from this storage.

using DevExpress.DashboardWeb;
// ...
        protected void Page_Load(object sender, EventArgs e)
        {
            ASPxDashboard1.WorkingMode = WorkingMode.ViewerOnly;
            DashboardTypeStorage typeStorage = new DashboardTypeStorage();
            typeStorage.RegisterDashboard(typeof(Dashboard1));
            typeStorage.RegisterDashboard(typeof(Dashboard2));
            ASPxDashboard1.SetDashboardStorage(typeStorage);
            ASPxDashboard1.DashboardId = "WebApplication1.Dashboard2";
        }

Inheritance

Object
DashboardTypeStorage
See Also