We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resolve css issue with EnableOptimzation in bundle config

Platform: ASP.NET MVC |
Control: Grid

This knowledge base explains how to resolve the CSS issue with EnableOptimization in bundle config.


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.




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”.





  1. Please refer this link for more detail regarding CssRewriteUrlTransformation (404 With Relative Paths and the Web Optimization Framework) 
  2. The ej.web.all.min.css file contains ej.theme.min.css and ej.widgets.core.min.css. So, include either ej.web.all.min.css (should be in separate bundle) or include ej.theme.min.css andej.widgets.core.min.css files separately. Set the EnableOptimization as true when refer theej.web.all.min.css file or else remove it. 



Figure 1: Grid Rendering with CSS files referred in bundle config.


2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile