Skip to main content
A newer version of this page is available. .

Integration Into an Existing Project

  • 2 minutes to read

To display DevExpress Bootstrap Controls correctly, ensure any of the following resources are referenced in your project:

  • bootstrap.css

  • bootstrap.min.css

Note

Bootstrap Charts additionally require the DevExtreme library and its dependencies. To learn more, refer to the Getting Started document.

Both CSS files and icon fonts are included in the default Bootstrap distribution package, which you can obtain from the Bootstrap official web site. Place the CSS files into the “Contents” folder and the fonts into the “fonts” folder within your project.

Provide the Required Files using NuGet

You can also install all required files using NuGet as described below.

  1. First, invoke the NuGet project manager for your project.

    Bootstrap_GettingStarted_ManageNuGetPackages

  2. In the NuGet Package Manager window, switch to the Browse tab and locate the Bootstrap package. Select the desired version of the Bootstrap framework and click Install.

    Bootstrap_GettingStarted_NuGetManager

  3. A dialog will appear, prompting you to accept project changes. Click OK to proceed.

Note that the installed package additionally includes bootstrap.js and its dependencies. The bootstrap.js file is not required for the correct operation of DevExpress Bootstrap controls, but you can use it to utilize the functionality of Bootstrap’s jQuery plugins in your web application.

Configuration

Specify the Bootstrap framework version used to render DevExpress Bootstrap controls in the Web.Config file.

<configuration>
...
<devExpress>
  <bootstrap mode="Bootstrap4" />
</devExpress>
...
</configuration>

Any page that uses DevExpress Bootstrap Controls should reference bootstrap.css (or bootstrap.min.css) directly or through a master page.


<head runat="server">
    ...
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
</head>

Additionally, add the following meta tag to <head> to ensure proper rendering of Bootstrap components.


<meta name="viewport" content="width=device-width, initial-scale=1">
See Also