Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught ReferenceError: kendo is not defined

Uncaught ReferenceError: kendo is not defined

My bundle:

bundles.Add(new ScriptBundle("~/bundles/allscripts").Include(
                    "~/Scripts/jquery-1.11.0.js",
                    "~/Scripts/modernizr-2.8.3.js",
                    "~/Scripts/kendo.all.js",
                    //"~/Scripts/kendo/kendo.aspnetmvc.min.js",
                    "~/Scripts/kendo.aspnetmvc.js",
                    "~/Scripts/kendo.culture.ru.js",
                    "~/Scripts/kendo.culture.kk.js",
                    "~/Scripts/kendo.messages.ru-RU.js",
                    "~/Scripts/kendo.culture.ru-RU.js",
                    "~/Scripts/bootstrap.js",
                    "~/Scripts/lightbox.js",
                    "~/Scripts/script.js",
                    "~/Scripts/jquery.jcarousel.pack.js",
                    "~/Scripts/kendo.modernizr.custom.js"));
like image 880
Магжан Куан Avatar asked Nov 20 '25 14:11

Магжан Куан


2 Answers

I had an issue where I tried to upgrade Kendo and all the files were moved out of Scripts/kendo and into Scripts/kendo/<version>.

In that case, you can either add the version to your bundle config or just move the files back to the kendo directory. You'll have to do this for both Scripts and Content.

like image 89
Greg Avatar answered Nov 22 '25 04:11

Greg


I had to add the below lines in my /Views/Shared/_Layout.cshtml file :

@Styles.Render("~/Content/telerik")
@Scripts.Render("~/bundles/telerik")

after these lines:

@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
like image 41
Jaggan_j Avatar answered Nov 22 '25 04:11

Jaggan_j



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!