Skip to main content

Prepare Dashboard Storage

  • 2 minutes to read

Dashboard storage is a location of dashboards you use in your Web Dashboard application. Users can save new dashboards to this storage and open existing dashboards.

Dashboard Storage Types

In-Memory Storage

The in-memory storage is a DashboardInMemoryStorage instance. If you do not register your dashboard storage, the Web Dashboard creates an in-memory storage and uses it to keep dashboards.

File Storage

A file storage is used to keep dashboard XML definitions in a file system (for example, on a server). Create a DashboardFileStorage instance to use this storage type.

You can also use the ASPxDashboard.DashboardStorageFolder property to set a path to a folder used to keep dashboards. This action is the equivalent of creating DashboardFileStorage.

Custom Storage

You can manage dashboards in your own way. Implement the IDashboardStorage or IEditableDashboardStorage interfaces and configure methods used to manage dashboards:

IDashboardStorage.GetAvailableDashboardsInfo
Returns information about stored dashboards.
IDashboardStorage.LoadDashboard
Allows you to load the dashboard from the storage.
IDashboardStorage.SaveDashboard
Allows you to save the dashboard to the storage.
IEditableDashboardStorage.AddDashboard
Allows you to add a new dashboard to the storage.

More information: Manage Multi-Tenancy.

Dashboard Type Storage

This storage is used for dashboards created in Visual Studio at design time.

You can use DashboardTypeStorage only in Viewer mode.

The ASP.NET Core Dashboard Control does not allow to edit these dashboards at design time.

Register Dashboard Storage

To register dashboard storage for the Web Dashboard control, pass the newly created storage to the DashboardConfigurator.SetDashboardStorage method.

// Configure a dashboard storage:
DashboardFileStorage dashboardFileStorage = new DashboardFileStorage("~/App_Data/Dashboards");
DashboardConfigurator.Default.SetDashboardStorage(dashboardFileStorage);

Manage Access Rights

See the following topics for information about access rights:

Load a Dashboard

See the following topics for information how to load a dashboard: