Forum


05:01

25/10/2009

Yo Guys….
Thanks for the plugin… it really ROCKS!!!!!!!!!!!!!!!!!!!
jQuery(”#tmpTable”).setGridParam({postData: { _search:true, searchField:'name', searchOper:'cn', searchStr:companyName},page:1}).trigger(”reloadGrid”);
got some problem right now.. i am using jqgrid 3.5.3
i am doing a simple search form, post data for the fields (searchField, searchOper, searchStr) is correct except to '_search' which always returning false… is jqgrid overiding it, and what could be the cause?
TIA
jQuery(”#tmpTable”).jqGrid({
url:'tmpTable.php',
width:900,
datatype: 'json',
//colNames:['Company Name'],
colModel :[{
name:'name'
,index:'name'
,width:100
}],
pager: jQuery('#tmpPager'),
rowNum:10,
rowList:[10,20,30],
sortname: 'name',
sortorder: “asc”,
multiselect: false,
viewrecords: true,
imgpath: 'themes/basic/images',
}).navGrid('#tmpPager',
{add:false,edit:false,del:false,search:false}
);
});/* end of on ready event */
jQuery(”#tmpTable”).setGridParam({postData: { _search:true, searchField:'name', searchOper:'cn', searchStr:'test'},page:1}).trigger(”reloadGrid”);
logs from firebug….
search | false |
nd | 1256723072780 |
page | 1 |
rows | 10 |
searchField | name |
searchOper | cn |
searchStr | rrew22 |
sidx | name |
sord | asc |
07:24

Moderators
30/10/2007

Hello,
You should :
Query(”#tmpTable”).setGridParam({postData: { search:true,...
instead of
Query(”#tmpTable”).setGridParam({postData: { _search:true,
When serch is true we post _search name which is configured prmNames.
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.
19:31

23/12/2009

I have the same problem. In my App is search by tags. So, when user clicks some tag I run:
$('#list').setGridParam({ postData: {filters: '{”groupOp”:”AND”,”rules”:[{"field":"tags","op":"cn","data":"' + tag + '"}]}', searchcloud: true, search:true, _search:true} }).trigger(”reloadGrid”);
but I still get :
search | false |
dimas | true |
filters | {"groupOp":"AND","rules":[{"field":"tags","op":"cn","data":"txt"}]} |
nd | 1261588985413 |
page | 1 |
root | 7b49d142f2ebb7ded0a4f928d5652db8 |
rows | 50 |
search | true |
searchcloud | true |
sidx | name |
sord |
asc
I use jqGrid 3.6, and tried. Could you give me any suggestion ?
Thanks in advance.
12:52

Moderators
30/10/2007

Hello,
$('#list').setGridParam( { postData: {some data }, search:true});
search is not a part from postData
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:
44 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