Forum


23:04

01/04/2009

Tony
I'm using the lasted code from github for beta 3.5. I have the following grid: Search toolbar opens/closes properly. When i enter a values in the search fields and hit enter key, the URL fires to my servlet, but the _search parameter posted is always "false" and no field values are posted. Am I doing something wrong?
jQuery(document).ready(function(){
var mygrid = jQuery("#sgrid").jqGrid({
url:'jqGridController?module=GetPersonnelsgridReportJSON',
datatype: "json",
colNames:[...
],
colModel:[...
],
rowNum:15,
rowList:[10,15,20,25,30,10000],
rownumbers: true,
gridview: true,
mtype: 'POST',
pager: jQuery('#sgridpager'),
height: '100%',
sortname: '1',
sortorder: 'asc',
viewrecords: true,
caption: 'MultiColumn Filter Search'})
.navGrid('#sgridpager',{view: false, edit: false, add: false,
del: false, search: false, refresh: false})
.navButtonAdd("#sgridpager'",{caption:"Search",title:"Toggle Search Toolbar",
buttonicon:'ui-icon-pin-s',
onClickButton:function(){
mygrid[0].toggleToolbar()
}
})
.navButtonAdd("#sgridpager'",{caption:"Clear",title:"Clear Search",
buttonicon :'ui-icon-refresh',
onClickButton:function(){
mygrid[0].clearToolbar()
}
});
mygrid.filterToolbar();
});
06:15

Moderators
30/10/2007

Hello,
Not sure what you do, but the exactley same example is on the demo page and it works ok. Also could you please post the entry colModel?
Where you check that _search paremeter is false - server side or in FireBug?
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.
01:17

23/06/2009

This is an Bug within "filterGrid".
Input-Elements are built with the "index" from the colModel.
But the search-trigger searches input-fields with the with the "name" from the colModel. Therefore, your "index" and "name" fields in the colModel must be exact the same. If there is a difference, filterGrid fails.
colModel-Example:
Works:
{name:'product_erp_id', index:'product_erp_id', width:80, align:'right', xmlmap:"erp_id"}
Dont Work:
{name:'erp_id', index:'product_erp_id', width:80, align:'right', xmlmap:"erp_id"}
10:33

Moderators
30/10/2007

Hello,
At end to resolve this - PLEASE HOW DO YOU CHECK THAT THIS PARAMETER IS FALSE SERVER SIDE?
If you look in the demo you maybe will check this
php code
$myserch = $_GET["_search"];
if($mysearch == "true") {.....}
AND NOT
if($mysearch)
Regards
P.S. The best way to check this is to see the posted parameters in FireBug console.
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.
03:19

Moderators
30/10/2007

Hello,
Do not see something wrong. Also if you check demo35 all seems to work fine.
Also could be this connected that you and maj0411 use Java ?
Also a link to the problem will help me a lot.
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.
03:32

Moderators
30/10/2007

Hello koni,
Could you please try 3.4.4 where this is fixed.
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.
05:41

Moderators
30/10/2007

Hello,
Since for me is very dificult to reproduce this behaviour I will be very happy if someone send me a link to the problem. If someon send a link please to include the development version (not minified version)
Thank you
Best 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.
06:55

23/06/2009

Hi Tony,
thanks for your attention.
I have a little setup for you here: http://85.10.211.132/jqGrid-Demo/
I hope, this shows our problem.
12:37

Moderators
30/10/2007

Hello,
Thanks koni. I have fixed this. Could you please try with the latest build.
Best 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:
67 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