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
remove "of n" in pager
27/09/2011
15:15
Avatar
JohnHadj
New Member
Members
Forum Posts: 1
Member Since:
27/09/2011
sp_UserOfflineSmall Offline

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

10/10/2011
20:09
Avatar
boson
Member
Members
Forum Posts: 5
Member Since:
06/10/2011
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information