I have an urgent issue. I am populating my brid like below. The first time my page loads, it builds the grid fine. If I click “next page” to go to page 2, it works fine. If I click next page again (only 3 pages total), it actually pulls the data and you can see it but the “Loading…” image stays up and I can see I have a Javascript error, it says “'undefined' is null or not an object'” and none of the buttons on the grid work anymore.
I tried using Visual Studio to debug the JS error and it is in the jqGrid's Javascript (but its minified) and it's something on the line , maybe 36 and it looks like
n=P[c];C=n[G];
Here, apparently n is undefined after the assignment (for some reason when this happens, “c” is equal to 3). This part may be wrong, it's just what I gathered trying to debug it.
This WORKS in Firefox 3.0.17.
jQuery(
“#list2”).jqGrid({
'/Location/GetJSON/', mtype: “GET”,
datatype:
“json”,
colNames:[
'Name', 'Company', 'State', 'StreetAddress1'],
colModel:[
{name:
'LocationName',index:'LocationName', width:200},
{name:
'CompanyId',index:'CompanyId', width:200 },
{name:
'StateId',index:'StateId', width:200 },
{name:
'StreetAddress1',index:'StreetAddress1', width:200}
],
jsonReader: {
repeatitems:
false
},
height:
'auto',
rowNum:10,
rowList:[10,20,30],
pager:
'#pager2',
sortname:
'LocationName',
viewrecords:
true,
sortorder:
“desc”,
caption:
“JSON Example”
});
jQuery(
“#list2”).jqGrid('navGrid','#pager2',{edit:false,add:false,del:false});
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top