By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,971 Members | 1,451 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,971 IT Pros & Developers. It's quick & easy.

Google like style pager for GridView

P: n/a
Hi, I need a liitle help with build of my custom pager for gridview...I made
this kind of pager..I looks like this:
<< < 1 2 3 4 5 6 7 8 9 10 >

Well...it's no bad but I wannt something like google pager:
<< < 1 2 3 4... >

if user cliks on ... he should see this:
<< < ...5 6 7 8 ... >

etc.

Any idea how to solve this ?
Sep 15 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Which google pager are you referring to? The one on the search page doesn't
look like that at all.
The search page one is:

[Previous] [BeforePages] CurrentPage [AfterPages] [Next]

[Previous] is only shown if CurrentPage 1

[Next] is only shown if CurrentPage < TotalPages

[AfterPages] is limited to the next 9 pages, though
actually:
min(9, TotalPages - CurrentPage)

[BeforePages] is limited to the previous 10 pages,
though actually:
min(10, 10 - (10 - CurrentPage))
Does that make sense?

Regards,

Rob

"SMichal" <mi************@trygon-softwareberatung.dewrote in message
news:uk**************@TK2MSFTNGP04.phx.gbl...
Hi, I need a liitle help with build of my custom pager for gridview...I
made this kind of pager..I looks like this:
<< < 1 2 3 4 5 6 7 8 9 10 >

Well...it's no bad but I wannt something like google pager:
<< < 1 2 3 4... >

if user cliks on ... he should see this:
<< < ...5 6 7 8 ... >

etc.

Any idea how to solve this ?

Sep 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.