Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Search problem since 3.4.1
18/02/2009
03:19
Avatar
glemarie
France
Member
Members
Forum Posts: 66
Member Since:
19/12/2008
sp_UserOfflineSmall Offline

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 ?

18/02/2009
03:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/02/2009
04:02
Avatar
glemarie
France
Member
Members
Forum Posts: 66
Member Since:
19/12/2008
sp_UserOfflineSmall Offline

Unfortunaletly no : its on an intranet whith no access from outside...

What could I provide to you ? The PHP code of page displaying a table ?

18/02/2009
04:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/02/2009
04:44
Avatar
glemarie
France
Member
Members
Forum Posts: 66
Member Since:
19/12/2008
sp_UserOfflineSmall Offline

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();

18/02/2009
08:33
Avatar
glemarie
France
Member
Members
Forum Posts: 66
Member Since:
19/12/2008
sp_UserOfflineSmall Offline

Finally I found the problem : I added a "scroll:true" parameter in my grids (while testing 3.4 beta) and didn't removed it.

Without this parameter (or at "false"), the results are correctly displaying.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information