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

aspnetmvc and dataviz not working if put together

1 Answer 109 Views
Chart
This is a migrated thread and some comments may be shown as answers.
preet
Top achievements
Rank 1
preet asked on 15 Jun 2012, 01:27 AM
I have a page with both the kendo mvc grid and chart. If i add both
<script src="@Url.Content("~/Scripts/kendo.aspnetmvc.min.js")"></script>
<script src="@Url.Content("~/Scripts/kendo.dataviz.min.js")"></script>
, chart does not work. if i remove aspnet.min.js reference, it works fine.
This is what my Layout.cshtml looks like
<!DOCTYPE html>
<
html>
<
head>
   <title>@ViewBag.Title</title>
   <
link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />   
   <
link rel="stylesheet" href="@Url.Content("~/Content/kendo.common.min.css")">
   <
link href="@Url.Content("~/Content/kendo.dataviz.min.css")" rel="stylesheet" type="text/css" />
   <
link rel="stylesheet" href="@Url.Content("~/Content/kendo.default.min.css")">
   <
script src="@Url.Content("~/Scripts/jquery.min.js")"></script><br>
   <
script src="@Url.Content("~/Scripts/kendo.web.min.js")"></script>
   @*<
script src="@Url.Content("~/Scripts/kendo.aspnetmvc.min.js")"></script>*@
   <
script src="@Url.Content("~/Scripts/kendo.dataviz.min.js")"></script>
  <
script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
</head>
<body>
  @RenderBody()

</
body>
</
html>

For my project, it is a big problem, if i cannot add them together. Please inform me if putting them together is the issue or if i am doing something wrong

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Jun 2012, 06:16 AM
Hi,

 Please include the kendo.aspnetmvc.min.js after kendo.dataviz.min.js as shown in the documentation: http://www.kendoui.com/documentation/asp-net-mvc/introduction.aspx 

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
Chart
Asked by
preet
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or