Skip to main content

DashboardBackendOptionsBuilder Class

Contains methods that allow you to configure the Web Dashboard’s back-end.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v24.1.AspNetCore.dll

NuGet Package: DevExpress.AspNetCore.Dashboard

Declaration

public class DashboardBackendOptionsBuilder

Remarks

The Web Dashboard allows you to separate the client and server. This means you can:

  • Integrate a dashboard in any place that supports HTTP requests (e.g., websites, web applications).
  • 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

HTML 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 DashboardBuilder.BackendOptions method to configure a server from the client application:

Platform

Member

ASP.NET Web Forms

ASPxDashboard.BackendOptions

ASP.NET MVC

DashboardExtensionSettings.BackendOptions

ASP.NET Core

HTML JS

DashboardControlOptions.endpoint / FetchRemoteServiceOptions.headers

The following code snippets show how to configure the client: to set the server’s url and pass a custom Authorization header. Note that the server’s url should consist of a base URL (where the Web Dashboard’s server side is hosted) and a route prefix (a value that is set in the MVC / .NET Core MapDashboardRoute properties).

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

DashboardControl.BackendOptions.Uri = "{baseURL}/api/dashboard";
DashboardControl.BackendOptions.RequestHttpHeaders.Add("Authorization", "AuthToken123");

Inheritance

Object
DashboardBackendOptionsBuilder
See Also