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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

ej.web.all.min.css not work when include into bundle in MVC.

Thread ID:

Created:

Updated:

Platform:

Replies:

149898 Dec 13,2019 07:45 AM UTC Dec 16,2019 06:50 AM UTC jQuery 1
loading
Tags: General
Prashant Prasad
Asked On December 13, 2019 07:45 AM UTC

Hi,

I have tried to refer ej.web.all.min.css through bundle in my application but when I refer it through bundle then it's not working. Below is my code

bundles.Add(new StyleBundle("~/Content/ej").Include(

                     "~/ejThemes/default-theme/ej.widgets.all.min.css", newCssRewriteUrlTransform()

                     ));

So how can I make it working using bundle?

 

Keerthana Rajendran [Syncfusion]
Replied On December 16, 2019 06:50 AM UTC

Hi Prashant, 
 
Good day to you, 
 
We suspect that the path is not updated correctly during bundling. We suggest you to refer the individual files (widget.core and theme file)in bundles.  
 
Refer to the below code  
 
bundles.Add(new StyleBundle("~/Content/css").Include( 
                        "~/Content/bootstrap.css", 
                        "~/Content/bootstrap-datetimepicker.css", 
                         "~/Content/bootstrap-sortable.css", 
                        "~/Content/site.css").Include(                 
                         "~/Content/ej/web/ej.widgets.core.bootstrap.min.css", new CssRewriteUrlTransformFixed()) 
                         .Include( 
                         "~/Content/ej/web/bootstrap-theme/ej.theme.min.css", new  CssRewriteUrlTransformFixed()) 
                        ); 
 
 
Refer to the following KB links for more details on bundling  
 
 
 
If still issue persists, kindly share us the bundle.config and Layout page of your project along with the screenshot on the output window after control rendering from your end.  
 
 
Regards, 
Keerthana.  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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
Live Chat Icon