Forum
22:23
04/12/2009
Hi:
I just run into a problem by following the example of inline editing. The problem appeared when testing for IE7 compatibility of my application. When I tried an inline editing I got an "Invalid argument" error, after checkin it, I realized that there was an undefinition of rowId. Anyway, I think you should update the examples to use something like:
if(id && id!==lastsel2){
if (lastsel2)
jQuery('#rowed5').jqGrid('restoreRow',lastsel2);
jQuery('#rowed5').jqGrid('editRow',id,true); lastsel2=id;
}
Instead of just:
if(id && id!==lastsel2){
jQuery('#rowed5').jqGrid('restoreRow',lastsel2);
jQuery('#rowed5').jqGrid('editRow',id,true); lastsel2=id;
}
Again, it'll work fine in FF, Chrome and IE 8, but it'll crash on IE 7. Besides, it doesn't hurt to have this variable checked for != null, that's the case when there hasn't been any prior selection.
Hope this helps.
Thanks!
18:42
Moderators
30/10/2007
Hello,
Thanks. I will check this. Checking of id is recommended since there can be possible that the row has no id set or bad one.
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:
72 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