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
Saving Search preferences
05/02/2009
08:03
Avatar
jCooper85
Member
Members
Forum Posts: 10
Member Since:
30/01/2009
sp_UserOfflineSmall Offline

Hey Tony,

I was wondering how to save the search preferences.  I know how to save the grid parameters.  But beacause the search preferences are added to the URL I am not sure how to save the search data.  

Regards,

Jason Walker

05/02/2009
09:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Search data is a part of grid parameters.

try getGridParam('searchdata') - it will give you the needed.

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/02/2009
10:14
Avatar
jCooper85
Member
Members
Forum Posts: 10
Member Since:
30/01/2009
sp_UserOfflineSmall Offline

Hey Tony,

I am still a little confused on how to use the searchdata.  I am not sure what the index names are for it.  So I get this searchdata object and I do not know how to pull the data out of it.

Regards,

Jason Walker

06/02/2009
02:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Your problem is not connected with jqGrid.

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/02/2009
12:36
Avatar
jCooper85
Member
Members
Forum Posts: 10
Member Since:
30/01/2009
sp_UserOfflineSmall Offline

Hey Tony,

Sorry I think you mis understood me.  What I was trying to say is this...

var searchData = $("#list").getGridParam("searchdata");

So I have my searchData but if I wanna get the elements of the searchData array I need to know the element names.  For example.  searchData["searchField"] to get what the searchField is. Except I tried  searchData["searchField"] and  searchData["searchfield"] and  searchData["sField"] none of them return data. Just an "undefined".  So how do I pull the data out of that?

19/02/2009
08:24
Avatar
jCooper85
Member
Members
Forum Posts: 10
Member Since:
30/01/2009
sp_UserOfflineSmall Offline

Hey Tony,

I really could use some help with this.  I am just not sure how to use the .getGridParam(”searchdata”) that you told me to use.  I can not figure out how to pull the searchdata out of the array that is return from .getGridParam(”searchdata”).  I am VERY new to jQuery so I am having a difficult time.  Any help would be appreciated.

Regards,

Jason Walker

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
50 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