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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resolve icon rendering issue when referring Syncfusion themes using bundling configuration

Platform: ASP.NET MVC |
Control: Gantt |
Published Date: August 3, 2017 |
Last Revised Date: May 29, 2019

While configuring the Syncfusion themes in bundle we should provide the proper virtual path reference. The virtual path defined as least folder that contains all the files referred in bundle. And we should provide the unique bundle name at the end of virtual path. It will resolve icon rendering issue.

Virtual path reference of syncfusion theme.

Please find the different way of virtual path reference of Syncfusion theme as below,

Type: 1 Direct “ej.well.all.min.css file reference”

bundles.Add(new StyleBundle("~/Content/ej/default-theme/ejstyles").Include(
                     "~/Content/ej/default-theme/ej.web.all.min.css"                   
                    ));
 
//_Layout.cshtml
@Styles.Render("~/Content/ej/default-theme/ejstyles")
 

Type: 2 Separate “ej.widgets.core.min.css” & “ej.theme.min.css” files reference.

bundles.Add(new StyleBundle("~/Content/ej/ejstyles").Include(
                     "~/Content/ej/ej.widgets.core.min.css",
                     "~/Content/ej/default-theme/ej.theme.min.css"                     
                  
                    ));
 
//_Layout.cshtml
 
@Styles.Render("~/Content/ej/ejstyles")

The Gantt demo sample is available in the following link,

Demo Sample

 

2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
ADD COMMENT
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