Forum
Topic RSS
09:10
11/02/2011
OfflineI'm connecting jqgrid to json that is being output from SOLR which deals only in records and has no concept of pages.
How can I intercept a paging request for more data & modify the start query arg?
For example, if my data has 100 records total & 10 records on a page, using the pager to go to page2 sends a GET with start=2. I need to change that to start=20.
Thanks!
18:24
10/08/2009
OfflineHello,
you can use serializeGridData event handler. It is a function which receive as an object the object which build the url parameters like {page:2,rows:10, ...}. You can use the input and construct another object like {start:20,rows:10, ...} and return the object from the serializeGridData event handler. In the way the new parameter will be send to the server instead. I hope this explanation will be enough for you to construct the url parameters which you need.
Best regards
Oleg
Most Users Ever Online: 994
Currently Online:
12 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