Skip to main content
A newer version of this page is available. .

Load a Dashboard

After you created a dashboard and saved it to the storage, you can load a dashboard by specifying its identifier using the DashboardBuilder.InitialDashboardId property. The DashboardBuilder.LoadDefaultDashboard method allows you to specify whether the default dashboard should be loaded from the dashboard storage.

The code snippet shows how to specify the SalesDetails dashboard as a default when configuring the control.

<div style="position: absolute; left:0;top:0;right:0;bottom:0;">
    @(Html.DevExpress().Dashboard("clientDashboardDesigner1")
        .Width("100%")
        .Height("100%")
        .WorkingMode(WorkingMode.Designer)
        .InitialDashboardId("SalesDetails")
    )
</div>

To obtain all the available dashboards’ identifiers, use the IDashboardStorage.GetAvailableDashboardsInfo method.

Note

The DashboardInMemoryStorage and DashboardFileStorage classes implement the IDashboardStorage interface. Cast a corresponding object to IDashboardStorage and use IDashboardStorage.GetAvailableDashboardsInfo to obtain the available dashboard identifiers.

You can also use the DashboardControl.loadDashboard client-side method to load a dashboard using its identifier.