DashboardService Class

Obsolete. Provides a server side API for the ASPxDashboardDesigner control and MVC Designer.

Namespace: DevExpress.DashboardWeb

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


[Obsolete("The DashboardService class is obsolete now. Use DashboardConfigurator instead.")]
public sealed class DashboardService
<Obsolete("The DashboardService class is obsolete now. Use DashboardConfigurator instead.")>
Public NotInheritable Class DashboardService

To prepare the ASPxDashboardDesigner/MVCxDashboardDesigner for the first use, you need to create the dashboard and data sources storages.

  1. Use the DashboardService.SetDashboardStorage static method to create a storage that will contain dashboards. You can use predefined dashboard storages (DashboardFileStorage or DashboardInMemoryStorage) or you can implement the IDashboardStorage interface to provide your own logic for managing dashboards using the Web Designer.

    If you do not create the dashboard storage, the DashboardService will use the DashboardInMemoryStorage by default.

  2. Prepare data sources that will be used to supply dashboards with data. You can do this in two ways.

    • Add the required connections string to the application configuration file. These connection strings can be used later in the Web Designer's UI to create new data sources.
    • Use the DashboardService.SetDataSourceStorage static method to create a storage that will contain data sources available for end-users. You can use a predefined implementation of the in-memory storage (DataSourceInMemoryStorage) or you can implement the IDataSourceStorage interface to provide a custom data source storage.

The DashboardService class also exposes the DashboardService.DataApi property that allows you to access an API used supply the dashboard with data at runtime (for instance, using the DataApiProvider.ConfigureDataConnection or DataApiProvider.DataLoading events).


See Also