This is a migrated thread and some comments may be shown as answers.

Kendo spinner doesnt work with Bundling & minification

3 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sai
Top achievements
Rank 1
sai asked on 14 Aug 2013, 03:46 PM
Hi,

Am using MVC4 project and followed the instructions given on this link. It works fine while debug flag is set to true in the web.config file. Which means that bundling and minification is disabled.

when debug flag is set to false, bundling and minification is enabled, then kendo spinner (kendo.ui.progress) doesn't load. Not sure if am missing something. Could someone please advise.

Thanks,
Sai

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Aug 2013, 01:27 PM
Hello Sai,

In order for the icons to be loaded, the bundle path(without the name) should point to the same folder as the folder with the CSS files and the folder for the theme. We have a code library that demonstrates how to configure the bundles. Please check it on this page and let me know if it works for you.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
sai
Top achievements
Rank 1
answered on 19 Aug 2013, 04:08 PM
Thanks Daniel,

Below is the snippet from my bundleConfig.cs file, am registering the Kendo styles in this way - 

bundles.Add(new StyleBundle("~/Contents/kendoStyles").Include(
    "~/Content/kendo.compatibility.css",
    "~/Content/kendo/2013.2.716/kendo.common.*",
    "~/Content/kendo/2013.2.716/kendo.default.*"
    ));
So when I set the debug flag to false in the web.config file. I found that in the fiddler its requesting images from a different folder. for eg for "sprite.png" its looking under the folder  "/Contents/Default/sprite.png" instead of "/Content/kendo/2013.2.716/Default/sprite.png". 

The solution file that I downloaded from code library , I found that the folder structure is completely different to mine.
I use versions in the folder name but the code library was not , So does this mean that I need to modify my folder structure and place all my kendo files directly under Scripts  and Contents folder instead of putting them in a separate folder.

Please advise. I want to keep my folder structure, I dont want to dump all the kendo styles in to the top level folders.
0
sai
Top achievements
Rank 1
answered on 20 Aug 2013, 07:55 AM
I figured out. Changed the virtual path of the StyleBundle pointing to the actual directory in my solution.
Tags
General Discussions
Asked by
sai
Top achievements
Rank 1
Answers by
Daniel
Telerik team
sai
Top achievements
Rank 1
Share this question
or