Forum


00:56

14/02/2010

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});
12:38

Moderators
30/10/2007

Hello,
Try to debug, not javascript code, but your response from the last page. Also check your server code again
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
70 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66