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
Clearing Search Data
21/10/2010
18:29
Avatar
ackerchez
New Member
Members
Forum Posts: 1
Member Since:
21/10/2010
sp_UserOfflineSmall Offline

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!

28/10/2010
11:15
Avatar
emo.antonov
Sofia, Bulgaria
Member
Members
Forum Posts: 19
Member Since:
16/06/2010
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information