Kentico CMS 7.0 Controls

Configuration

Configuration

Previous topic Next topic Mail us feedback on this topic!  

Configuration

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The properties of the DataPager control can be accessed through the PagerControl property of the paged controls, like for example:
 
[C#]

 

CMSRepeater1.PagerControl.BackText = "<-";

 

In addition to the properties from Paging controls - common properties, the following properties can be set in your code behind files:

 

Property Name

Description

Sample Value

DataSource

Can be used to access the object of the pager's data source.

 

BackNextDisplay

Back/Next display mode.

"Buttons"

"Hyperlinks"

BackNextLocation

Back/Next location.

"Right"

"Left"

"Split"

"None"

BackText

Back button/hyperlink text.

 

FirstText

First button/hyperlink text.

 

HideOnSinglePage

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

 

IgnoreQueryString

Indicates whether querystring parameters should be ignored.

 

InsertKeys

Adds keys to the querystring.

 

InsertToUrl

Indicates whether inserting querystring keys is enabled.

 

LabelText

Label text.

 

LastText

Last text.

 

NextText

Next button/hyperlink text.

 

PagedData

Gets the data to be paged.

 

PageNumbersDisplay

Page numbers display mode.

"Numbers"

"Results"

PagerPosition

The position of the pager relative to the paged data.

"Bottom"

"Top"

"TopAndBottom"

PagingMode

Determines the type of the used paging parameter. It can either be passed through the URL (QueryString) or through postback (PostBack).

PostBack

QueryString

QueryStringKey

Query parameter name for the page index.

"pagenumber"

RecordEnd

Index of the last record on the current page.

 

RecordStart

Index of the first record on the current page.

 

RemoveFromUrl

Indicates whether removing querystring keys is enabled.

 

RemoveKeys

Removes keys from the querystring.

 

ResultsFormat

Results text format.

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

ResultsLocation

Results location.

"Top"

"Bottom"

"None"

ShowFirstLast

Indicates whether first/last buttons should be displayed.

 

ShowLabel

Indicates whether labels should be displayed.

 

ShowPageNumbers

Indicates whether page numbers should be displayed.

 

SliderSize

Slider size.

 

TotalRecords

Total amount of data source records.

 

UseSlider

Indicates whether the slider should be used.