DashboardBuilder.BackendOptions(Action<DashboardBackendOptionsBuilder>) Method

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

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v18.2.AspNetCore.dll

Declaration

public DashboardBuilder BackendOptions(
    Action<DashboardBackendOptionsBuilder> config
)
Public Function BackendOptions(
    config As Action(Of DashboardBackendOptionsBuilder)
) As DashboardBuilder

Parameters

Type Name Description
Action<DashboardBackendOptionsBuilder> config

A delegate that provides access to the Web Dashboard's back-end options.

Returns

Type Description
DashboardBuilder

A reference to this instance after the operation has completed.

You can use the Web Dashboard not only as a standalone application. The Web Dashboard allows you to separate the client and server parts. Use the BackendOptions method 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.

@(Html.DevExpress().Dashboard("dashboardControl1")
    .BackendOptions(options => options.Uri("http://www.dashboard.server").RequestHttpHeaders("Authorization", "AuthToken123"))
)

See Also