If I in my action method return View("_Grid") there are no errors in the console.
If I return PartialView("_Grid") I get an error saying "Uncaught ReferenceError:jQuery is not defined" on the anonymous function jQuery(function(){jQuery("#notesGrid").kendoGrid({"columnHide":OnNotesGridLayoutChange, ... })
To me the bundleConfig looks correct, as well as the _Layout view.
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js",
"~/Scripts/jquery-migrate-{version}.js"
));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate-vsdoc.js",
"~/Scripts/jquery.validate.js",
"~/Scripts/jquery.validate.min.js",
"~/Scripts/jquery.validate.unobtrusive.js",
"~/Scripts/jquery.validate.unobtrusive.min.js",
"~/Scripts/jquery.validate.unobtrusive.bootstrap.min.js",
"~/Scripts/jquery.unobtrusive-ajax.js",
"~/Scripts/jquery.unobtrusive-ajax.min.js"));
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
"~/Scripts/kendo/2015.1.429/kendo.all.min.js",
// "~/Scripts/kendo/kendo.timezones.min.js", // uncomment if using the Scheduler
"~/Scripts/kendo/2015.1.429/kendo.aspnetmvc.min.js"));
}
And the top of _Layout
<
html
>
<
head
>
<
meta
charset
=
"utf-8"
/>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1.0"
>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edge"
>
<
title
>@ViewBag.Title</
title
>
@Styles.Render("~/Content/css")
@Styles.Render("~/Content/kendo/2015.1.429/css")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/kendo")
@Scripts.Render("~/bundles/ias")
@Scripts.Render("~/bundles/jqueryval")
@Scripts.Render("~/bundles/fancybox")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/bootstrap")
<
script
src
=
"@Url.Content("
~/Scripts/kendo/2015.1.429/jszip.min.js")"></
script
>
</
head
>