Skip to main content
All docs
V24.2
.NET 8.0+
  • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

StartupExtensions.MapXafDashboards(IEndpointRouteBuilder, String, String) Method

Registers the required Dashboards Module routes in the application’s IEndpointRouteBuilder.

Namespace: DevExpress.ExpressApp.Dashboards.Blazor

Assembly: DevExpress.ExpressApp.Dashboards.Blazor.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Dashboards.Blazor

#Declaration

public static void MapXafDashboards(
    this IEndpointRouteBuilder endpoints,
    string dashboardEndpoint = "api/dashboard",
    string dashboardControllerName = "XafBlazorDashboard"
)

#Parameters

Name Type Description
endpoints IEndpointRouteBuilder

The application’s route builder.

#Optional Parameters

Name Type Default Description
dashboardEndpoint String "api/dashboard"

The endpoint URL prefix used to send data requests to a server.

dashboardControllerName String "XafBlazorDashboard"

The Controller name without the Controller suffix.

#Remarks

Call this method in the Startup.Configure method when you add the Dashboards Module to your ASP.NET Core Blazor application:

File: MySolution.Blazor.Server\Startup.cs.

using DevExpress.ExpressApp.Dashboards.Blazor;
// ...
public class Startup {
    // ...
    public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
        // ...
        app.UseEndpoints(endpoints => {
            endpoints.MapXafDashboards();
            // ...
        }
    }
    // ...
}
See Also