RadGrid for ASP.NET

Pager item Send comments on this topic.
Paging > Pager item

Glossary Item Box

If paging is enabled, Telerik RadGrid will render pager item(s) (GridPagerItem) on the top and/or bottom of each GridTableView displayed in the hierarchy.

Pager

Pager Appearance

The appearance of the pager item can be controlled using GridTableView.PagerStyle property. As most of appearance options, PagerStyle of each GridTableView can be predefined using RadGrid.PagerStyle property - this would apply to all GridTableViews in the hierarchy unless specified other for a certain table-view.
As PagerStyle extends the TableItemStyle class the settings could apply to item's fore-color, back-color, border style, font etc. GridPagerStyle also provides properties to control the position of the items' PagerStyle.PositionTop, Bottom or TopAndBottom and type of pager buttons that appear.

Localizing the GridPagerItem messages

You can localize the tooltips that appear when a pager button is hovered, using the following properties.

RadGrid.PagerStyle

 

PrevPageToolTip

The tooltip that will be displayed over the previous page button.

PrevPagesToolTip

The tooltip that will be displayed over the previous pages button.

NextPageToolTip

The tooltip that will be displayed over the next page button.

NextPagesToolTip

The tooltip that will be displayed over the next pages button.

Pager Modes

The Pager buttons allow the user to navigate through the pages: change the display page by setting next or previous or use a page number to directly switch page. Use GridTableView.PagerStyle.Mode property to control the mode in which pager buttons would display and function.

The table below show how the grid pager will look in the different modes:

Numeric

GridPagerMode.Numeric

PrevNext

GridPagerMode.PrevNext

NextPrevAndNumeric

GridPagerMode.NextPrevAndNumeric

NextPrevNumericAndAdvanced

GridPagerMode.NextPrevNumericAndAdvanced

Advanced

GridPagerMode.Advanced

Slider

GridPagerMode.Slider

You can have the grid pager in alphabetical mode as described in Alphabetic paging in Telerik RadGrid topic.

All properties controlling paging behavior can be set using either development environment designers or programmatically. The values set programmatically are persisted into the view-state providing consistency in the grid page navigation.

Custom Pager Buttons

If you use any other button(s) to control paging in Telerik RadGrid in a custom manner, you can use command button(s) with CommandName = "Page" and CommandArgument = "Next, "Prev", or a number of any page - ex. CommandArgument = "42".