This example illustrates how to use separate DashboardConfigurator instances within an ASP.NET Core Dashboard application to provide different server-side settings. In this example, the Sales and Marketing views use different dashboard storages.
Dashboard controllers are defined in the DashboardControllers.cs file.
The dependency injection technique is used to register Dashboard Configurators in the Startup.cs file.
Note that the Web Dashboard control uses a single cache. The use of separate DashboardConfigurator instances does not create separated caches. To specify a different cache for different controllers/configurators, add required information to the CustomData field of the cache key in the DashboardConfigurator.DataSourceCacheKeyCreated event handler.
- Startup.cs
- DashboardConfigurators.cs
- DashboardControllers.cs
- Index.cshtml
- MarketingView.cshtml
- SalesView.cshtml
- Dashboard for MVC - How to use separate server-side settings for different views
- Dashboard for MVC - How to implement multi-tenant Dashboard architecture
- Dashboard for MVC - How to load different data based on the current user
(you will be redirected to DevExpress.com to submit your response)