Forum


Hi,
I am using jqgrid 3.6.I am getting an error on IE 8 "jquery.jqgrid is null or not an object" when i try to add or edit in the grid.The code works absolutely fine on FireFox.Can you please help me as it is very urgent as we are going live on Monday.I have tried debugging a lot and it seems there is some race condition happening because of which my code is not working.This will be great if i get a solution ASAP.Thanks in advance.
OlegK said:
Sorry, but nobody can find an error in your code if you don't post the code.
And one more question. Do you use 3.6 or 3.6.4 or the last modification of 3.6.4 from http://www.trirand.com/blog/? It is also importent to write always which version of jQuery and jQQuiery UI you use.
Hi Oleg,
I am using 3.6 and not the latest one.The version of jquery is 1.3.2.How do i post the code?The problem is that when i call beforeInitData and put an alert in it i get the alert but after that i get the problem in IE saying jquery.jgrid is null or not an object.I am new to web development so dont know much about the internal js working so dont know which code should i post?
19:33

10/08/2009

Hello abkhandelwal!
First of all, if you think that your problem is the problem of jqGrid, so mostly pure javascript problem, you must be able to create a small html/javascript example, where the problem exist. So try to create one html page with a javascript inside, which use jqGrid and do almost the same, which your current project with the error do. Either during this work you find the reason of your problem yourself or you'll create a working example where the problem exist.
If you project works with server, try to fill the same data without comunication with server. To do this, replace "datatype" parameter of jqGrid to "datatype: 'local'" and fill your test data with respect of addRowData function, like this do following code:
jQuery('#list').jqGrid({
datatype: 'local',
...
colNames: ['Name', 'Testtiefe', 'RowVersion'],
colModel: [
{ name: 'Name', index: 'n', width: 120 },
{ name: 'TesttiefeName', index: 't', width: 180 },
{ name: 'RowVersion', index: 'r', width: 50, hidden: true }],
...
});
var myData = [
{ Name: "VIA XP", TesttiefeName: "Alle SW-Produkte", RowVersion: "20FC31" },
{ Name: "KUBUS", TesttiefeName: "Alle SW-Produkte", RowVersion: "20FC32" }
];
for (var i = 0; i <= myData.length; i++)
jQuery("#list").addRowData(i + 1, myData[i]);
You can also place the code example to a place in Internet, if you have access to some web server, and post an url.
If you want, that sombody in the world helps you without any payments from your side, you should at least prepare your question so, that people who read your question receive an a sport interest to solve your problem. At least you have to give enough information to be able to reproduce your problem.
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
37 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