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 UniPager control is determined by the code of its templates and by certain other properties.

 

The following templates can be defined within the tags of the UniPager control. Please refer to the Structure topic to see what individual templates represent.

 

Template Name

Description

Sample Value

CurrentPageTemplate

Code of the template used for the current page in the pager. Use <%# Eval("Page") %> to get the current page number, <%# Eval("PageURL") %> to get page the URL or <%# Eval("PageLink") %> to get the page link.

<strong><%# Eval("Page") %></strong>

DirectPageTemplate

Code of the template used for direct page changing. Use a TextBox or DropDownList control with ID DirectPageControl to register the page change event.

Page

<asp:TextBox ID="DirectPageControl" runat="server" Style="width: 25px;" />

of

<%# Eval("Pages") %>

FirstPageTemplate

Code of the template used for the link to the first page in the pager. Use <%# Eval("FirstURL") %> to get the link to the first page.

<a href="<%# Eval("FirstURL") %>">|&lt;</a>

LastPageTemplate

Code of thetemplate used for the link to the last page in the pager. Use <%# Eval("LastURL") %> to get the link to the last page.

<a href="<%# Eval("LastURL") %>">&gt;|</a>

LayoutTemplate

Code of the template used for the overall pager layout.

 

NextGroupTemplate

Code of the template used for the link to the next group of pages. Use <%# Eval("NextGroupURL") %> to get the link to the next group.

<a href="<%# Eval("NextGroupURL") %>">...</a>

NextPageTemplate

Code of the template used for the link to the next page. Use <%# Eval("NextURL") %> to get the link to the next page.

<a href="<%# Eval("NextURL") %>">&gt;</a>

PageNumbersSeparatorTemplate

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

&nbsp;

PageNumbersTemplate

Code of the template used for page links in the pager. Use <%# Eval("Page") %> to get the current page number, <%# Eval("PageURL") %> to get the URL of the current page or <%# Eval("PageLink") %> to get the page link.

<a href="<%# Eval("PageURL") %>"><%# Eval("Page") %></a>

PreviousGroupTemplate

Code of the template used for the link to the previous group of pages. Use <%# Eval("PreviousGroupURL") %> to get the link to the next group.

<a href="<%# Eval("PreviousGroupURL") %>">...</a>

PreviousPageTemplate

Code of the template used for the link to the previous page. Use <%# Eval("PreviousURL") %> to get the link to the next page.

<a href="<%# Eval("PreviousURL") %>">&lt;</a>