473,799 Members | 3,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Google like style pager for GridView

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
1 3448
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-softwareberatun g.dewrote in message
news:uk******** ******@TK2MSFTN GP04.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1317
by: Arjen | last post by:
Hi, How can I make the pager look smaller? (it's to height) Making the font-size smaller does not help. See the sample here: http://beta.asp.net/QUICKSTART/aspnet/samples/data/GridViewMasterDetailsInsert_cs.aspx Thanks!
0
1824
by: Ray | last post by:
I am trying to add a "Next >" and "<Prev" button to the pager of my datagrid. I have been able to add the hyperlinks to the pager. I am now trying to determine the correct postback script to emulate so that these hyperlinks force the postback of the appropriate linkbuttons in the pager. Let's take a pager with pager: 1 2 3 4 5 It consists of: linkbutton linkbutton label linkbutton linkbutton I want it to be: < Prev 1 2 3 4 5 Next > It...
1
3532
by: Friso Wiskerke | last post by:
Hi all, is it possible to set a separate style in a datagrid pager for the selected page to make it more clear for the user which page is selected? For example: page 3 is selected out of the 8 possible pages and the number 3 is then displayed in bold and with an alternate color. There's a pager style but there is no setting for the selected page. TIA
6
24752
by: Tim Cartwright | last post by:
I am trying to figure out how to change the gridview caption style, but I can not figure out how. I added table caption { background-color: #5D7B9D; color: White; font-size: 16pt; } to my CSS, yet when the page renders, the grids style take precendence, as
0
1758
by: bdtmike | last post by:
I'm using the GridView control and have the Mode of the Pager set to "NumericFirstLast". However, when there are several pages to display, the pager shows only page numbers--and no First/Last buttons. First of all, is this a bug or am I doing something stupid? Secondly, can I override the page numbers using my own template? I'm using the latest Visual Studio 2005 Thanks.
0
879
by: Mr. SweatyFinger | last post by:
i need Previous 123456 Next How can i do this using the custom pager setting? thanks
2
1341
by: Stuart Ferguson | last post by:
I am using a GridView control with auto paging in a web application I am currently developing and was looking to customise the pager. I need to make the overall page numbers larger and also change the selected page number to be larger and bolder than the other numbers how can this be done. Any help would be appreciated. Stuart
3
1216
Bob Ross
by: Bob Ross | last post by:
In my application in several of the gridviews if I click links within in the grids 5 times or more (links are opening new windows) then it treats the next pager click as a fresh laod of the page and returns you to page 1. It is not hitting the pageIndexChanged event just the page_load. The strange thing is my gridviews are working in very different ways and still doing it. Some are simply bound in the code behind to a collection with a...
5
3014
by: imbirek8 | last post by:
Hello I am looking good Pager to asp.net GridView Control. I would like to have: next/previous page, X results on page and go to X page. Can you recommend me a good (and free) Pager to GridView ? Thanks
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10238
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10030
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4145
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.