All docs
V21.2
21.2
21.1
The page you are viewing does not exist in version 21.1. This link will take you to the root page.
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

RestrictedDashboardController Class

A dashboard controller that handles interactions between client and server sides in Restricted mode.

Namespace: DevExpress.DashboardWeb.Mvc

Assembly: DevExpress.Dashboard.v21.2.Web.Mvc5.dll

Declaration

public abstract class RestrictedDashboardController :
    AsyncController

Remarks

You can verify the trust level and specify which actions a client can initiate to execute them on a server side. If you use Restricted mode, you can prevent inadvertent or unauthorized modifications to dashboards stored on the server. 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:

See the following example for information on how to create and use a restricted dashboard controller in an ASP.NET MVC app:

View Example: How to create a restricted dashboard controller

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RestrictedDashboardController class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also