typeerror $(...).jqgrid is not a function?
I am working on Asp.net MVC application in which i am trying to use
jqGrid 3.4.2 - jQuery Grid
to display the data but after adding the code as shown below it is throwing the error as "jQuery("#list").jqGrid is not a function http://localhost/starfix/Logbook Line 116" when the page loads
<
asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
" title="coffee" media="screen" />
jQuery(document).ready(
function() {
jQuery(
"#list").jqGrid({
url:
'/Logbook/GridData/',
datatype:
'json',
mtype:
'GET',
colNames: [
'Id', 'Votes', 'Title'],
colModel: [
{ name:
'Id', index: 'Id', width: 40, align: 'left' },
{ name:
'Votes', index: 'Votes', width: 40, align: 'left' },
{ name:
'Title', index: 'Title', width: 400, align: 'left'}
],
pager: jQuery(
'#pager'),
rowNum: 10,
rowList: [5, 10, 20, 50],
sortname:
'Id',
sortorder:
"desc",
viewrecords:
true,
imgpath:
'/scripts/themes/coffee/images',
caption:
'My first grid'});
});
asp:Content>
<
h2>My Grid Data
<
table id="list" class="scroll" cellpadding="0" cellspacing="0">
<
div id="pager" class="scroll" style="text-align:center;">
i am quite new to jquery hence not able to find the reason for this error. Can anybody pls help me in this ?
For example, a function expression:
And, a function declaration:
Historically, function declarations defined within blocks were handled inconsistently between browsers. Strict mode (introduced in ES5) resolved this by scoping function declarations to their enclosing block.
More Questions
- Is there any startup hiring in NY?Tech, business, development, marketing, legal, and HR are all acceptable roles.
- How to celebrate aquarius man birthday?
- Do diabetics get edema?
- Can a cfi teach cfi?
- Aws data pipeline vs glue vs lambda?
- This weekend should I buy Aqualogica Hydrate+ Sunscreen with SPF 50 For UVA/B & Blue Light Protection, Gel, 50G [Review]?
- What is means of communication?
- How to extract eigenvalues in r?
- How to activate ifr flight plan in the air?
- What is ecr and ecnr passport?