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, NextPrevAndNumeric, NextPrevNumericAndAdvanced, NumericPages, Advanced, Slider). Additionally, in order to display the grid pager regardless of the number of records returned and the page size, you could set the
PagerStyle -> AlwaysVisible property of the corresponding GridTableView to
true. Its default value is false.
RadGrid provides
PageSizeControlType property collection which is an Enum of type
PagerDropDownControlType and has three values available: None, RadComboBox, RadDropDownList with RadComboBox being the default one. As it name implies, the property specifies what type of page size drop down control will be rendered. The user is given an easy way to switch off the page size combo or replace it with its light weight counterpart
RadDropDownList.
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.