DashboardBackendOptions Class

Contains options that allow you to configure the Web Dashboard's back-end.

Namespace: DevExpress.DashboardWeb

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

Declaration

public class DashboardBackendOptions
Public Class DashboardBackendOptions

You can use the Web Dashboard not only as a standalone application. The Web Dashboard allows you to separate the client and server parts. This means you can:

  • Integrate a dashboard in any place that supports HTTP requests (e.g., see the GitHub Pages Demo).
  • Publish Web Dashboard as a part of applications based on Angular, Knockout, Vue and similar frameworks.
  • Use the Dashboard side-by-side with DevExtreme client-side widgets to create highly responsive web apps.

The table below illustrates correlations between server and client. The row headers display platforms you can use as a server, the column headers show available client counterparts.

Server \ Client

ASP.NET Web Forms

ASP.NET MVC

ASP.NET Core

HTML5 JS

ASP.NET Web Forms (UseDashboardConfigurator = false)

-

-

-

-

ASP.NET Web Forms (UseDashboardConfigurator = true)

OK

-

-

-

ASP.NET MVC

OK

OK

OK

OK

ASP.NET Core

OK

OK

OK

OK

Use the following properties / methods for a corresponding platform to configure a server from the client application:

Platform

Member

ASP.NET Web Forms

ASPxDashboard.BackendOptions

ASP.NET MVC

DashboardExtensionSettings.BackendOptions

ASP.NET Core

DashboardBuilder.BackendOptions

HTML5 JS

DashboardControlOptions.endpoint / AjaxRemoteServiceOptions.headers

The code samples below show how to configure the client: to set the server's url and pass a custom Authorization header.

For MVC or ASP.NET Core back-end, the url is a controller's address:

DashboardControl.BackendOptions.Uri = "http://www.dashboard.server";
DashboardControl.BackendOptions.RequestHttpHeaders.Add("Authorization", "AuthToken123");

For a WebForms control with a configurator as a back-end, provide the Dashboard HTTP handler's url instead of the controller's address:

DashboardControl.BackendOptions.Uri = "http://www.dashboard.server/DXDD.axd";

You can require setting up CORS on your back-end.

Inheritance

Object
DashboardBackendOptions

See Also