You can register client-side libraries automatically using the following settings in the Web.config
file resources
section:
<devExpress>
<!-- ... -->
<resources>
<add type="ThirdParty" />
<add type="DevExtreme" />
</resources>
</devExpress>
For more information, review the following help topic: External Client Libraries.
Sometimes you need to have more control over the libraries your application loads. If that is important to you, you'll need to add client libraries manually and in a specific order. In this example, all the required third-party and DevExtreme libraries are registered in an ASP.NET Web Forms application manually, one by one.
To disable automatic registration, leave the resources
section empty in the Web.config
file:
<devExpress>
<!-- ... -->
<resources>
</resources>
</devExpress>
You must then register the client scripts manually.
In this example, client libraries and stylesheets are included in the Default.aspx.
Note
The order in which the libraries are loaded onto the page is important.
- Ace.js - used by the Expression Editor in the Web Report Designer.
- DevExpress Rich Text Editor - enables you to edit rich text in the XRRichText control at design time.
DevExtreme library is required since Reporting for Web components are based on DevExtreme widgets.
-
This example uses the npm package manager to download library files. Right-click the
package.json
file in the Solution Explorer, and select Restore Packages to load libraries from npm source. You can also use thenpm install
command in the project folder to restore packages. -
Run the project in Visual Studio. Open the Default.aspx page that includes styles and libraries in the necessary order.
(you will be redirected to DevExpress.com to submit your response)