Forum


03:19

19/12/2008

Hello,
I just moved to jqGrid 3.4.1 / jQuery 1.3.1. Everything seems to be ok except for my search forms : when I make a search, the grid content is not updated (it does the same for all my tables).
I used Firebug to determine if the response is correct and yes, it it : the json data is ok. The loadError event is not fired.
After some tests, I found that when the result contains less records than grid content, it is not refreshed. But when the result contains more records, the grid data is refreshed. Strange…
Anyway, I did not change anyting in my php or SQL code and it worked perfectly with jqGrid 3.3.
Edit : I saw that someone had the same problem, but in my case, I dont' have any JS error when the search is fired.
Any idea ?
03:46

Moderators
30/10/2007

Hello,
Could you please provide a link to the problem
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.
04:14

Moderators
30/10/2007

If I test in the demo page - all goes ok. What you use actually - navigator search or filterGrid method?
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.
04:44

19/12/2008

I use the filterGrid method. For example :
jQuery(”#t_listCandidat”).height(25).filterGrid(”listCandidat”,{gridModel:true,gridToolbar:true,gridNames:true,enableClear:false});
When filters are initialized on page load via JS, and the the triggerSearch method is run, the search works fine :
$('#contentCandidat').find('#".$key."').val('".$val."');
jQuery("#listCandidat").setGridParam({datatype: 'json'});
var cs = jQuery('#t_listCandidat')[0];
cs.triggerSearch();
Most Users Ever Online: 715
Currently Online:
56 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