expressappframework-117449-analytics-dashboards-module.md
The Dashboards Module integrates DevExpress Dashboard controls into ASP.NET Core Blazor and Windows Forms XAF applications.
Tip
You can find examples of this functionality in the MainDemo demo included with XAF. The demo illustrates various XAF features (including Dashboards Module) and is located in the %PUBLIC%\Documents\DevExpress Demos 25.2\Components\XAF\MainDemo.NET.EFCore folder.
|
For users
|
For developers
| | --- | --- | |
|
|
Note
The DashboardView and Dashboard Module are different XAF concepts. Dashboard Views display multiple XAF Views in a single Frame - they do not use DevExpress Dashboard controls.
| Platform | Module | NuGet package |
|---|---|---|
| Platform-agnostic | DashboardsModule | DevExpress.ExpressApp.Dashboards |
| WinForms | DashboardsWindowsFormsModule | DevExpress.ExpressApp.Dashboards.Win |
| ASP.NET Core Blazor | DashboardsBlazorModule | DevExpress.ExpressApp.Dashboards.Blazor |
ASP.NET Core BlazorDxDashboardWindows FormsDashboardDesigner
DashboardViewer
The Dashboards Module uses the following View Items to host dashboard controls in ASP.NET Core Blazor and Windows Forms XAF applications:
The Dashboards Module extends the Application Model with the IModelDashboardNavigationItem node and adds the IModelClassDashboardsVisibility.IsVisibleInDashboards property to the IModelClass node.
The Module uses the following built-in business objects (entities) that implement the IDashboardData interface to store dashboards:
You can also use a custom dashboard data type. To do this, follow these steps:
DashboardData or implement the IDashboardData interface.Tip
To display the DashboardData object’s Detail View, use the technique listed in the following help topic: Ways to Show a View.
Use either of the following techniques to add the Dashboards Module:
You can add modules to your application when you use the Template Kit to create a new XAF solution. Select modules in the Additional Modules section.
In XAF applications, you can call the AddDashboards(IModuleBuilder<IWinApplicationBuilder>, Action<DashboardsOptions>) / AddDashboards(IModuleBuilder<IBlazorApplicationBuilder>, Action<DashboardsOptions>) method in your WinForms / ASP.NET Core Blazor application builder.
If you do not use an application builder, you can add these Modules to the ModuleBase.RequiredModuleTypes collection of the platform-specific Module.
Tip
Make sure that you installed the appropriate platform-specific NuGet package.
The following additional steps may be required:
Navigate to the MySolution.Module\BusinessObjects\MySolutionDbContext.cs file and include the DashboardData entity in the data model:
Navigate to the MySolution.Blazor.Server\Startup.cs file (ASP.NET Core Blazor) or the MySolution.Win\Startup.cs file (Windows Forms) and specify the DashboardDataType explicitly:
Open the following file: MySolution.Blazor.Server\Startup.cs.
In the Startup.ConfigureServices method, call the AddXafDashboards method to register Dashboards Module services.
In the Startup.Configure method, call the MapXafDashboards method to configure endpoints for the Dashboards Module.
For more information on how to resolve problems that can occur when you use the Dashboards Module , refer to the following topic: Dashboards Module Troubleshooting Guide.
See Also
Create, View and Modify Dashboards in a WinForms Application
Create, View, and Modify Dashboards in an ASP.NET Core Blazor Application