Forum


08:17

12/02/2009

Hi,
I would like to know if it is possible to implement an external search linked to JqGrid. I mean for example an input field in a form with a button search and when the user click on it the grid will refresh with the new records generated by the query.
Is it possible do to something like that?
I search in the doc and examples but did not find any function that I could call.
thks in advance
David
12:52

24/01/2009

I did that just using
$('#grid').setGridParam({postData: {search:$('#input').val()}}).trigger(”reloadGrid”)
as action when user click ok or press enter. What this does is send append &search=field to the file which populates the grid, so you have to adjust that file too.
Works fine for me, except that he have to do an empty search to reset.
Hope it helps,
Best regards,
Rodolfo
Most Users Ever Online: 715
Currently Online:
45 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