Getting started Kendo UI for ASP.NET MVC -problems

4 posts, 2 answers
  1. Answer
    Venkatesh
    Venkatesh avatar
    4 posts
    Member since:
    May 2013

    Posted 26 Aug 2013 Link to this post

    I reffered the below link to create a asp.net mvc3 project with kendo UI
    http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/introduction
    I use razor view. my index page is as follows

    Index.cshtml
    @{
    Layout = null;
    }

    <!DOCTYPE html>

    <html>
    <head>
    <title>Index</title>
    <link href="../../KendoStyles/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="../../KendoStyles/kendo.default.min.css" rel="stylesheet" type="text/css" />

    <script src="../../KendoScripts/jquery.min.js" type="text/javascript"></script>
    @*<script src="../../KendoScripts/kendo.all.min.js" type="text/javascript"></script>*@
    <script src="../../KendoScripts/kendo.web.min.js" type="text/javascript"></script>
    <script src="../../KendoScripts/kendo.aspnetmvc.min.js" type="text/javascript"></script>

    </head>
    <body>
    <h1>Welcome to Kendo Samples</h1>
    <div>
    @(Html.Kendo().DatePicker().Name("Birthday"))
    </div>
    </body>
    </html>

    when i use kendo.web.min.js i get the error "Microsoft JScript runtime error: Unable to get value of the property 'extend': object is null or undefined"
    with kendo.all.min.js it works fine. I get no error message.

    What is wrong with my code if any?
  2. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 26 Aug 2013 Link to this post

    Hello Venkatesh,

    I tried to replicate the issue using the latest version 2013.2.716 of our Kendo UI Complete for ASP.NET MVC product but to no avail. I used your razor view definition in a quick test project which I am attaching to this forum post. No error was produced in my case and the date picker was visualized and functioned as expected.

    Can you test that on your machine and compare the results? Any additional insight can help to pinpoint the cause of the abnormality to address it accordingly.

    Regards,
    Sebastian
    Telerik
    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
  4. Venkatesh
    Venkatesh avatar
    4 posts
    Member since:
    May 2013

    Posted 27 Aug 2013 Link to this post

    The version of jquery.min.js that I used was v1.7.1. I didnt get any error when I use 1.8.3 version. I also dont use the latest version of KendoUI(v2013.1.319).
     
    If I get the latest version of kendoUI, how do I make sure which version of jquery.min.js to use. How to we approach for such dependencies. 
  5. Venkatesh
    Venkatesh avatar
    4 posts
    Member since:
    May 2013

    Posted 27 Aug 2013 Link to this post

    Please ignore the previous post. I had different versions of js files causing the problems.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready