Forum

July 12th, 2025
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
Passing extra parameters to URL
13/02/2011
07:39
Avatar
danyw
Member
Members
Forum Posts: 4
Member Since:
13/02/2011
sp_UserOfflineSmall Offline

Hi everyone,

I am fairly new to jQuery, and very new to the grid plugin. My first use of this fantastic plugin involves needing extra parameters when fetching data. It is part of an ASP.NET MVC app and I need to pass two variables to the controller action. Currently my method has the usual signature of (string sidx, string sord, int page, int rows). How can I pass a couple more parameters?

Any suggestions would be greatly appreciated.

Many thanks,

D.

13/02/2011
08:06
Avatar
danyw
Member
Members
Forum Posts: 4
Member Since:
13/02/2011
sp_UserOfflineSmall Offline

D'oh! Looks like postData may be something I should look into...please correct me if I'm going down the wrong path...

13/02/2011
13:19
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi Dany,

the postData parameter is exactly what you need. By the way in many scenarios you can need to send the data to the server which are dynamical (not the same as the the jqGrid initialization time). In the case it could very usefull to define some of postData properites as a functions. See here for more explanation.

Best regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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