select

Grid / Basic Paging

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7

Pager position:

Numeric pager:

CustomerIDCompanyNameContactNameContactTitleAddressPostalCode
 Page 1 of 19, items 1 to 5 of 91.
ALFKIAlfreds FutterkisteMaria AndersSales RepresentativeObere Str. 5712209
ANATRAna Trujillo Emparedados y heladosAna TrujilloOwnerAvda. de la Constitución 222205021
ANTONAntonio Moreno TaqueríaAntonio MorenoOwnerMataderos 231205023
AROUTAround the HornThomas HardySales Representative120 Hanover Sq.WA1 1DP
BERGSBerglunds snabbköpChristina BerglundOrder AdministratorBerguvsvägen 8S-958 22

Next/Previous buttons pager:

CustomerIDCompanyNameContactNameContactTitleAddressPostalCode
Change page:
 Page 1 of 19, items 1 to 5 of 91.
ALFKIAlfreds FutterkisteMaria AndersSales RepresentativeObere Str. 5712209
ANATRAna Trujillo Emparedados y heladosAna TrujilloOwnerAvda. de la Constitución 222205021
ANTONAntonio Moreno TaqueríaAntonio MorenoOwnerMataderos 231205023
AROUTAround the HornThomas HardySales Representative120 Hanover Sq.WA1 1DP
BERGSBerglunds snabbköpChristina BerglundOrder AdministratorBerguvsvägen 8S-958 22

Both numeric and Next/Previous buttons pager:

CustomerIDCompanyNameContactNameContactTitleAddressPostalCode
Page size:
select
 91 items in 19 pages
ALFKIAlfreds FutterkisteMaria AndersSales RepresentativeObere Str. 5712209
ANATRAna Trujillo Emparedados y heladosAna TrujilloOwnerAvda. de la Constitución 222205021
ANTONAntonio Moreno TaqueríaAntonio MorenoOwnerMataderos 231205023
AROUTAround the HornThomas HardySales Representative120 Hanover Sq.WA1 1DP
BERGSBerglunds snabbköpChristina BerglundOrder AdministratorBerguvsvägen 8S-958 22

Example Source Code & Description

Instructions
Open in new window
  • You can familiarize with the basic paging capabilities of Telerik RadGrid from this online example. Pages can be changed by clicking on the page indicators in the footer.

    The paging functionality can be enabled by setting the AllowPaging property to true. The available settings are: PageSize, PagerPosition (Top, Bottom or TopAndBottom) and Mode (NextPrev or NumericPages). If sorting is enabled as well, paging operation will automatically retain the sort order and sort direction.
    Additionally, in order to display the grid pager regardless of the number of records returned and the page size, you should set the PagerStyle -> AlwaysVisible property of the corresponding GridTableView to true. Its default value is false.

    Furthermore, you can set only the format of the text that will appear in the Pager using the PagerTextFormat property. The default format is:

    Change page: {4} | Displaying page {0} of {1}, items {2} to {3} of {5}.

    The {0}, {1}, {2}, {3} and {4} parameters are mandatory when setting the property.
    • {0} is used to display current page number.
    • {1} is total number of pages.
    • {2} will be replaced with the number of the first item in the current page.
    • {3} will be set to the number of the last item in the current page.
    • {4} indicates where pager buttons would appear.
    • {5} corresponds to number of all items in the datasource.


    More info regarding the built-in paging feature of Telerik RadGrid you can find in the Paging help chapter:
    Paging

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us