ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
jQuery is undefined error when trying Grid Spreadsheet demo
Title:
B
I
{code}
?
I am having difficulty displaying the test data from https://demo.aspnetawesome.com/GridSpreadsheetDemo. Whenever I try to run it, I keep getting the 'jQuery' is undefined error. View: @using Omu.AwesomeMvc @using Omu.Awem.Helpers @(Html.Awe().Grid("Spreadsheet") .Groupable(false) .Sortable(false) .Url(Url.Action("GridGetItems")) .CssClass("spreadsh") .Columns( new Column { Bind = "Name", ClientFormatFunc = "txt" }, new Column { Bind = "Location", ClientFormatFunc = "txt" }, new Column { Bind = "Meal", ClientFormatFunc = "txt" })) @Html.Awe().InitCall("addCol").Url(Url.Action("AddColumn")).Success("utils.refreshGrid('" + gridId + "')") @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/jqueryui") @*<script src="~/Scripts/jquery-3.3.1.min.js"></script>*@ ...
Save Changes
Cancel
Afreay
asked at 25 Mar 2019
jquery needs to be referenced inside the `head` tag https://www.aspnetawesome.com/learn/mvc/Installation basically before any awesome js file or helper is called
at 25 Mar 2019
Omu
I don't recall having a head tag in my MVC 5 project. I have referenced jQuery though
at 27 Mar 2019
Afreay
you can see the html structure here https://www.w3schools.com/html/html_intro.asp ( note the `head` tag ) please follow the instructions in the installation link above, there's also a video tutorial
at 27 Mar 2019
Omu
I'm using Razor C# for my View Content. I don't have any tags in my View.
at 27 Mar 2019
Afreay
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK