DashboardController Class
A dashboard controller that handles interactions between client and server sides.
Namespace: DevExpress.DashboardAspNetCore
Assembly: DevExpress.Dashboard.v21.2.AspNetCore.dll
NuGet Package: DevExpress.AspNetCore.Dashboard
Declaration
Remarks
A list below describes the Web Dashboard’s specifics when it operates in the Restricted mode:
Only dashboards stored in dashboard storage can be processed on the client. The designer mode does not work.
Calling the IEditableDashboardStorage.AddDashboard and IDashboardStorage.SaveDashboard methods leads to an exception.
Information about data sources contained in a dashboard xml definition is not passed to the client when you request a dashboard xml file.
You can do one of the following to prevent inadvertent or unauthorized dashboard modifications and protect dashboards stored on a server:
- Handle the DashboardConfigurator.VerifyClientTrustLevel event and set e.ClientTrustLevel to Restricted mode.
- Derive a custom dashboard controller from RestrictedDashboardController instead of
DashboardController
.
See the following example for information on how to create and use a restricted dashboard controller in an ASP.NET Core app: