Out of the box MVC project doesn't work

3 posts, 0 answers
  1. Richard Averett
    Richard Averett avatar
    10 posts
    Member since:
    Jan 2010

    Posted 30 Jul 2013 Link to this post

    I've been having alot of problems getting the MVC extensions working. I finally resorted to starting up a brand new "c# Kendo UI for MVC Web Application". I start it up and straight away in the Chrome developer tools I see the following errors:

    Uncaught SyntaxError: Invalid regular expression: missing / kendo.all.min.js:10
    Uncaught TypeError: Cannot read property 'jQuery' of undefined kendo.aspnetmvc.min.js:10

    I checked all the FQAs about these errors and confirmed that everything (web.config, Single JQuery reference, etc...) and everything looks good. Moreover, I tried to add a grid and I'm seeing :

    Uncaught TypeError: Object [object Object] has no method 'kendoGrid'

    I've attached the sample project that I created.
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 30 Jul 2013 Link to this post

    Hello Richard,

    I suspect that the issue you encountered is due to the reason explained in this sticky forum thread. That's why I suggest you download and update the files in your project to see whether this helps.

    Kind 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. Bil
    Bil avatar
    27 posts
    Member since:
    Aug 2012

    Posted 10 Mar 2014 in reply to Richard Averett Link to this post

    Richard,

    Telerik says it's fixed with the latest but I was getting the same issue in a project I was converting. I changed the order that the javascript Kendo files were loaded and it fixed the issue for me. YMMV.

    So this produces the cannot read jquery property error:
    bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
                    "~/Scripts/kendo/kendo.aspnetmvc.min.js",
                    "~/Scripts/kendo/kendo.all.min.js"));

    This works:
    bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
                    "~/Scripts/kendo/kendo.all.min.js",
                    "~/Scripts/kendo/kendo.aspnetmvc.min.js"));
Back to Top