Required Client Libraries

This document provides information on the client libraries the Web Dashboard requires.

Required Libraries Overview

The Web Dashboard requires the following libraries:

  • DevExtreme Libraries

    DevExtreme libraries are used to render dashboard items and various UI elements inside the Web Dashboard application.

  • Third-party Libraries

    • jQuery 3.3.1+
    • jQuery UI 1.12.1+
    • globalize 1.0+

      The Web Dashboard requires the core Globalize script and four Globalize modules (message, number, date, and currency), as well as certain cldrjs scripts.

          <script src="Scripts/globalize/cldr.js"></script>
          <script src="Scripts/globalize/cldr.event.js"></script>
          <script src="Scripts/globalize/cldr.supplemental.js"></script>
      
          <script src="Scripts/globalize/globalize.js"></script>
          <script src="Scripts/globalize/globalize.message.js"></script>
          <script src="Scripts/globalize/globalize.number.js"></script>
          <script src="Scripts/globalize/globalize.currency.js"></script>
          <script src="Scripts/globalize/globalize.date.js"></script>
      

      Read more about Globalize modules and requirements in the Globalize documentation.

      The basic cldr content needed for the Web Dashboard is included in the library. However, for locales other than "en" (or currencies other than "USD"), cldr content should be loaded additionally (read more in the Globalize documentation).

    • knockout 3.4.0+
    • ace.js 1.1.9+

      Ace is a code editor embedded into the Web Dashboard's Expression Editor.

Note

Note that the HTML JavaScript Dashboard control also requires specific client-side scripts. See Client-Side Configuration for more information.

See Automatic Integration or Manual Integration to learn how to attach the libraries listed above.

Automatic Integration

If you are using the ASP.NET Web Forms Dashboard Control or ASP.NET MVC Dashboard Extension, you can include client-side libraries on a web page by adding the "resources" section to the application's Web.config file:

<devExpress>
    <!-- ... -->
    <resources>
        <add type="ThirdParty" />
        <add type="DevExtreme" />
    </resources>
</devExpress>

For ASP.NET Core Dashboard, use the MvcServiceCollectionExtensions.AddDevExpressControls method to provide the Third-Party and DevExtreme middleware:

using DevExpress.DashboardAspNetCore;
using DevExpress.AspNetCore;
using DevExpress.DashboardWeb;

// ...

public void ConfigureServices(IServiceCollection services) {
    // ...
    services.AddDevExpressControls(settings => settings.Resources = ResourcesType.ThirdParty | ResourcesType.DevExtreme);
}

The HTML JavaScript Dashboard control requires attaching libraries using the dx.dashboard-control.third-party.min.js bundle located in the following path:

C:\Program Files (x86)\DevExpress 18.2\Components\Sources\DevExpress.Dashboard\DevExpress.Dashboard.Web\Scripts\Bundle

Manual Integration

You can prevent a control from automatically loading a library (for example, when it is already referenced on the web page) by doing the following:

  • Declaring an empty "resources" section in the Web.config file (if you are using the ASP.NET Web Forms Dashboard Control or ASP.NET MVC Dashboard Extension).

    <resources>
    </resources>
    
  • Using the MvcServiceCollectionExtensions.AddDevExpressControls method without parameters (if you are using the ASP.NET Core Dashboard):

    using DevExpress.DashboardAspNetCore;
    using DevExpress.AspNetCore;
    using DevExpress.DashboardWeb;
    
    // ...
    
    public void ConfigureServices(IServiceCollection services) {
        // ...
        services.AddDevExpressControls();
    }
    
  • Manually attaching the DevExtreme resources and the required third-party libraries (such as jQuery, Globalize, etc.) to the web page.

    <html>
    <head>
        <script src="Scripts/jquery-3.3.1.js"></script>
        <script src="Scripts/jquery-ui-1.11.3.min.js"></script>
        <script src="Scripts/knockout-3.4.0.js"></script>
    
        <script src="Scripts/globalize/cldr.js"></script>
        <script src="Scripts/globalize/cldr.event.js"></script>
        <script src="Scripts/globalize/cldr.supplemental.js"></script>
    
        <script src="Scripts/globalize/globalize.js"></script>
        <script src="Scripts/globalize/globalize.message.js"></script>
        <script src="Scripts/globalize/globalize.number.js"></script>
        <script src="Scripts/globalize/globalize.currency.js"></script>
        <script src="Scripts/globalize/globalize.date.js"></script>
    
        <script src="Scripts/ace-build/ace.js"></script>
        <script src="Scripts/ace-build/ext-language_tools.js"></script>
        <script src="Scripts/ace-build/theme-dreamweaver.js"></script>
        <script src="Scripts/ace-build/theme-ambiance.js"></script>
    
        <link href="Css/dx.common.css" rel="stylesheet" />
        <link href="Css/dx.light.css" rel="stylesheet" />
        <script src="Scripts/dx.all.js"></script> 
    </head>
    ...
    </html>
    
    Note

    You can find the required DevExtreme resources in the following locations:

    • CSS files - C:\Program Files (x86)\DevExpress 18.2\Components\Sources\DevExpress.Web.Resources\Css\DevExtreme
    • Scripts - C:\Program Files (x86)\DevExpress 18.2\Components\Sources\DevExpress.Web.Resources\Scripts\DevExtreme

    Note that the HTML JavaScript Dashboard control does not require attaching DevExtreme scripts - they are included in the dx.dashboard-control.bundle.min.js script file. See Client-Side Configuration for more details.