DataPager

The DataPager control ensures paging of some of the CMSControls:

 

CMSDataList
CMSRepeater
CMSSearchResults
QueryDataList
QueryRepeater

 

It cannot be used separately.

 

See also: TemplateDataPager

 

Properties

 

Property Name

Description

Sample Value

CurrentPage

Current page index.

 

BackText

Back button/hyperlink text.

 

FirstText

First text.

 

HideOnSinglePage

If true, the pager is hidden if only one page is displayed.

 

IgnoreQueryString

Indicates if QueryString parameters should be ignored.

 

LabelText

Label text.

 

LastText

Last text.

 

MaxPages

Maximum number of pages to be diplayed.

 

NextText

Next button/hyperlink text.

 

PageCount

Page count (read only).

 

PageNumbersSeparator

Page numbers separator.

","

PageSize

Page size

 

PagingMode

Determines if PostBack or QueryString should be used for the paging.

PostBack

QueryString

QueryStringKey

Query parameter name for the page index.

"pagenumber"

RecordEnd

Index of the last record on current page.

 

RecordStart

Index of the first record on current page.

 

ResultsFormat

Results text format.

"Displaying results {0}-{1} (of {2})"

SliderSize

Slider size.

 

TotalRecords

Total data source records.

 

 

 

Design

 

Property Name

Description

Sample Value

BackNextButtonStyle

Back/Next button style.

 

BackNextDisplay

Back/Next display mode.

Buttons

Hyperlinks

BackNextLinkSeparator

Back/Next link separator.

 

BackNextLocation

Back/Next location.

Right

Left

Split

None

BackNextStyle

Back/Next style.

 

ControlCssClass

CSS Class of the pager control

 

LabelStyle

Label style

 

PageNumbersDisplay

Page numbers display mode.

Number

Results

PageNumbersStyle

Page numbers style.

 

PagerControlStyle

Pager control style.

 

PagerPosition

Pager position.

Bottom

Top

ResultsLocation

Results location.

Top

Bottom

None

ResultsStyle

Results style.

 

SectionPadding

Section padding.

 

ShowFirstLast

Show first last labels.

 

ShowLabel

Show label.

 

ShowPageNumbers

Show page numbers.

 

UseSlider

Use slider.