This knowledge base explains how to resolve the CSS issue with EnableOptimization in bundle config. Solution: 1. We can achieve this requirement by referring the ej.web.all.min.css file in the BundleConfig when we set the “EnableOptimizations” as true and the file (ej.web.all.min.css) should be added as a separate bundle by applying a CssRewriteUrlTransformation. This will import the CSS file from the individual files. BundleConfig.cs
2. If you are not enable “EnableOptimizations” then we suggest you refer “ej.widgets.core.min.css” & “ej.theme.min.css” individual files instead of “ej.web.all.min.css”. Because “ej.web.all.min.css” files have been imported from two other css files “ej.wigets.core.min.css” and “ej.theme.min.css”. BundleConfig.cs
Note:
Result: Figure 1: Grid Rendering with CSS files referred in bundle config.
|
Article ID: | Published Date: | Last Revised Date: | Platform: | Control: |
9063 | 07/30/2018 | 07/30/2018 | ASP.NET MVC | Grid |
Tags:
|
or the page will be automatically redirected to sign-in page in 10 seconds.