Forum
Topic RSS
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:19
10/08/2009
OfflineHi 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
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home