The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxDashboard.BackendOptions Property

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

Namespace: DevExpress.DashboardWeb

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

Declaration

[PersistenceMode(PersistenceMode.InnerProperty)]
public DashboardBackendOptions BackendOptions { get; }
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property BackendOptions As DashboardBackendOptions

Property Value

Type Description
DashboardBackendOptions

A DashboardBackendOptions object that contains the Web Dashboard's back-end options.

Remarks

You can use the Web Dashboard for more than a combined application. The Web Dashboard allows you to separate the client and server parts. Use the BackendOptions property to specify server settings for the client dashboard application.

The code sample below shows how to configure the client: to set the server's url and pass a custom Authorization header. Note that the Uri value should consist of a base URL where the Web Dashboard's server side is hosted and the route prefix - a value that is set in the MVC / .NET Core backend.

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

For a WebForms control that uses the DashboardConfigurator's instance API, provide the Dashboard HTTP handler's url instead of the controller's address:

DashboardControl.BackendOptions.Uri = "{baseURL}/api/dashboard/DXDD.axd";
See Also