Forum


15:15

27/09/2011

I'm new to this excellent plugin.
I have a jqGrid fetching data from a web service where most queries are quick, but some can take a considerable time. For most of the queries I would like the pager as standard, showing "page p of n" and "view a - b of m", but when it is a slow query, the time taken for the server to calculate m (and therefore n) in addition to the results would double the time the user has to wait. In these cases I wish to display just "page p" and "view a-b", in other words remove the "of n" and "of m".
The nearest I have got to this is either inhibiting the whole display, or displaying "of NaN" by having the server send "?" in place of a number.
Can anyone give me a clue as to where I should be looking to achieve what I need?
Thanks
John
20:09

06/10/2011

Hi John,
If you have a pager like <div id="grid_pager"></div>, you can do almost anything you want about how you want to display it. For instance, you can hide it until loading is completed: $('#grid_pager').hide(), and if you want to add your own text you can do something like this: $('#grid_pager_right').text('foo'). If you use FireBug plugin, you can get the DOM information on any section of the page.
I hope this helps,
Boson
Most Users Ever Online: 715
Currently Online:
52 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