Forum


18:29

21/10/2010

Hi Everyone, I am hoping that one of the jqgrid gurus can help me here. Here is my problem.
Currently I have a grid set up with the search enabled. When I run a search everything works fine and I can return good data back to the grid. I see that the "_search" parameter on the url is set to "true" and all is well.
However, when finished with the search and the data is no longer relevant, I would like to reload the grid to display the previous data that was there (the data displayed on the initial pageload). I made a function to call the "trigger("reloadGrid")" method but that just sends the same data with the "_search" still set to "true".
Is there a way to clear out the search request data and just reload the initial data shown on pageload or at least set the "_search" value back to "false" so I can check against it? Currently the only way to display the original data is to reload the page.
Thanks!
11:15

16/06/2010

I'm not sure i get you right but here it is what I am using:
$("#jqg_Bvb_Grid_Deploy_JqGrid").jqGrid('navButtonAdd',"#jqg_pager_Bvb_Grid_Deploy_JqGrid",{
caption:"Clear Filters",
title:"Clear Search",
buttonicon :'ui-icon-refresh',
onClickButton:function(){
var mygrid = $("#jqg_Bvb_Grid_Deploy_JqGrid")[0];
mygrid.clearToolbar();
}
});
Most Users Ever Online: 715
Currently Online:
56 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