Kentico CMS 6.0 Controls

Appearance and styling

Appearance and styling

Previous topic Next topic Mail us feedback on this topic!  

Appearance and styling

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

The appearance of the TemplateDataPager control is determined by the code in its templates. The following are available:

 

Template Name

Description

Sample Value

FirstItemTemplate

Code of the template used for the link to the first page in the pager.

<a href="?Page=1">First</a>&nbsp;|&nbsp;

LastItemTemplate

Code of the template used for the link to the last page in the pager.

&nbsp;|&nbsp;<a href="?Page=<%# pageCount %>">Last</a>

NextItemTemplate

Code of the template used for the link to the next page.

&nbsp;|&nbsp; <a href="?Page=<%# nextPage %>">Next</a>

NumberTemplate

Code of the template used for page links in the pager. Use <%# Eval("PageNumber") %> to get the current page number.

<a href="?Page=<%# Eval("PageNumber") %>">

<%# Eval("PageNumber") %>

</a>

PreviousitemTemplate

Code of the template used for the link to the previous page.

<a href="?Page=<%# previousPage %>">Previous</a> &nbsp;|&nbsp;

SelectedNumberTemplate

Code of the template used for the number of the currently selected page.

<b>

<%# Eval("PageNumber") %>

</b>

SeparatorTemplate

Code of the template used for the separator between page links in the pager.

-