A dashboard controller that handles interactions between client and server sides in Restricted mode.
NuGet Package: DevExpress.AspNetCore.Dashboard
public abstract class RestrictedDashboardController : Controller
Public MustInherit Class RestrictedDashboardController Inherits Controller
The working mode does not influence the server settings. Initially, the server works at the ClientTrustLevel.Full trust level. Verify the trust level and specify which actions a client can initiate on the server.
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
RestrictedDashboardControllerinstead of DashboardController.
Restricted mode affects the Web Dashboard in the following manner:
Only dashboards stored in dashboard storage can be processed on the client. Designer mode does not work.
Information about data sources contained in a dashboard xml definition is not passed to the client when you request a dashboard XML file.
See the following example for information on how to create and use a restricted dashboard controller: