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

ASP.Net MVC4 - KendoUI CSS files rendered with empty content.

3 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jignesh
Top achievements
Rank 1
Jignesh asked on 06 Dec 2012, 06:33 AM
Project Type: ASP.Net MVC4

In _Layouts folder:
@Styles.Render("~/Content/kendo")

In Bundles config:
 bundles.Add(new StyleBundle("~/Content/kendo").Include(
                        "~/Content/kendo/2012.3.1114/kendo.common.min.css",
                        "~/Content/kendo/2012.3.1114/kendo.default.min.css"));

It is working, when in web.config <compilation debug="true" targetFramework="4.0"/>

But rendered as blank file on browser when <compilation debug="false" targetFramework="4.0"/>


3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 06 Dec 2012, 07:22 AM
Hello,

 The steps required to use Kendo UI assets via ASP.NET bundles are described in our documentation.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jignesh
Top achievements
Rank 1
answered on 06 Dec 2012, 08:31 AM
As stated, its working fine in debug mode, but not working in Release mode.

In release mode css content rendered file is totally blank.

Please see the IE 9 >> Developer tools scree-shot.

The problem is only with 
<compilation debug="false" targetFramework="4.0"/>
0
Atanas Korchev
Telerik team
answered on 06 Dec 2012, 09:00 AM
Hi,

 The instructions from the documentation work both in release and debug mode. I don't think your current configuration would work for any JS file. The problem is not related to Kendo UI.

Regards,
Atanas Korchev
the Telerik team
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
Jignesh
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Jignesh
Top achievements
Rank 1
Share this question
or