Designer and Viewer Modes
- 2 minutes to read
The ASP.NET MVC Dashboard Extension can act as a Designer or Viewer. The following modes are available:
Mode | Description |
---|---|
Designer | The Web Dashboard acts as a Dashboard Designer and allows end-users to create, edit and save dashboards. Note that in this case, you can switch to the Viewer mode on the client side. |
Viewer | The Web Dashboard acts as a Dashboard Viewer and allows you to display dashboards to end-users. Note that in this case, you can switch to the Designer mode on the client side. |
ViewerOnly | The Web Dashboard acts as a Dashboard Viewer without the capability to switch to the Designer mode on the client side. In this mode, the Web Dashboard does not load the extensions required for designing dashboards. |
- Specify Working Mode on Server
- Switch Between Working Modes on Client
- Enable End Users to Switch Between Working Modes
- Example
Specify Working Mode on Server
You can use the DashboardExtensionSettings.WorkingMode property to specify the initial working mode on a server.
Switch Between Working Modes on Client
Use the following two approaches to switch the working mode on the client side:
- Change the working mode of the client-side DashboardControl object. Learn more at HTML JavaScript Dashboard Control | Designer and Viewer Modes.
- Switch the working mode using the ASPxClientDashboard object’s API. To learn how to do this, refer to the following topic: How to: Create an ASP.NET MVC Dashboard Designer Application with Predefined Data Sources.
Enable End Users to Switch Between Working Modes
You can allow end users to switch between the Designer and Viewer by enabling the Dashboard Panel.
Example
To see an example on how to switch between the WorkingMode.Designer and WorkingMode.Viewer mode, refer to the following topic: How to: Create an ASP.NET MVC Dashboard Designer Application with Predefined Data Sources.