Open Closed

Devexpress Dashboard integration #7703


0
robin.venter@mondigroup.com created

Hi,

I am trying to integrate the deveexpress dashboard control into my angular application.

I tried the sample at the link below and it worked as expected.

https://docs.devexpress.com/Dashboard/400322/get-started/build-web-dashboard-applications/create-an-html-javascript-dashboard-application-modular-approach-angular

But adding the code as described to the aspnet zero solution doesn't seemt to work.

Specifically it does not get to the code inside the AddDefaultDashboardController method. And without running that code there is no default DashboardController for the angular app.

Do you perhap have any idea what could be causing this code not to execute?

` public IServiceProvider ConfigureServices(IServiceCollection services) { //MVC services .AddMvc(options => { options.Filters.Add(new CorsAuthorizationFilterFactory(DefaultCorsPolicyName)); }) .AddDefaultDashboardController((configurator, serviceProvider) => { _ DataBaseEditaleDashboardStorage dataBaseDashboardStorage = new DataBaseEditaleDashboardStorage(appConfiguration.GetConnectionString("Default")); configurator.SetDashboardStorage(dataBaseDashboardStorage); }) .SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

        services.AddDevExpressControls(settings => settings.Resources = ResourcesType.ThirdParty | ResourcesType.DevExtreme);`

No answer yet!