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

ASP.NET (MVC) bundles breaks kendo.common-bootstrap - kendo.bootstrap theme

3 Answers 220 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alberto
Top achievements
Rank 1
Alberto asked on 08 Feb 2016, 03:25 PM

Hi team

Anyone knows why mvc bundles breaks the kendo css?

this is my bundle in a brand new mvc project, doing this give the result find on 1.png which is the expected

           
bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-{version}.js"));
 
bundles.Add(new ScriptBundle("~/bundles/bootstrap")               
    .Include("~/Scripts/kendo/2016.1.112/angular.min.js")
    .Include("~/Scripts/kendo/2016.1.112/kendo.all.min.js")
    );
 
bundles.Add(new StyleBundle("~/Content/css").Include(                     
          "~/content/kendo/2016.1.112/kendo.common-bootstrap.min.css",
          "~/content/kendo/2016.1.112/kendo.bootstrap.min.css",
          "~/Content/site.css"
          ));

 

 However if I force the bundling using BundleTable.EnableOptimizations = true; I get the results on attachments 2 which does not render properly

 

Regards

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Feb 2016, 03:55 PM
Hi Alberto,

Does this happen in all browsers or just IE? When combining CSS files, you may hit IE's known limitations.

http://docs.telerik.com/kendo-ui/aspnet-mvc/fundamentals#css-bundling

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Alberto
Top achievements
Rank 1
answered on 10 Feb 2016, 04:46 PM

Hi Dimo

My bundle just using "kendo.common-bootstrap.min.css" and "kendo.bootstrap.min.css" is 304.50 kb and this is minified, so the problem is that your theme it is just too big.

/bundles/Kendo?v=X4xBwt5DXtR0mufVvb5UOin5Ju_SN-DIzWlmOGQrjUk1    GET    200    text/css    304.50 KB    32 ms  

0
Dimo
Telerik team
answered on 11 Feb 2016, 09:21 AM
Hello Alberto,

The Kendo UI CSS files currently contain styles for all web/mobile widgets, but we will split them later in 2016. In the meantime, we recommend not adding them to bundles to ensure old IE browser support.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Alberto
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Alberto
Top achievements
Rank 1
Share this question
or