aspnetmvc and dataviz not working if put together

2 posts, 0 answers
  1. preet
    preet avatar
    6 posts
    Member since:
    Jan 2011

    Posted 14 Jun 2012 Link to this post

    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 15 Jun 2012 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top