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

Out of the box MVC project doesn't work

2 Answers 286 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard Averett
Top achievements
Rank 1
Richard Averett asked on 30 Jul 2013, 05:47 AM
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 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 30 Jul 2013, 08:32 AM
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!
0
Bil
Top achievements
Rank 1
answered on 10 Mar 2014, 04:05 PM
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"));
Tags
General Discussions
Asked by
Richard Averett
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Bil
Top achievements
Rank 1
Share this question
or