<Pager>

The Pager tag can only be used within a Template or DataList tag. The tag defines how the pagers in the view will look and function. The Pager attributes provide the information necessary to define how the components of the top and bottom pagers will look while the inner content of the Pager allows you to use HTML to determine how the components are arranged. If no inner content is specified, the default layout will be used. If no tag is specified, the pagers will not be shown.

SEO-Friendly Pager: As of version 4.5, you can set the Type property of the Pager to "Hyperlink" and the pager will use standard hyperlinks which can be crawled more easily by search engines.

NOTE: To turn off paging for the view, use the UsePaging attribute of the <xmod:template> or <xmod:DataList> tag.

Syntax

<xmod:Template|DataList ...>
    ...
    <Pager
       CurrentPageCssClass="string
        FirstLastCssClass="string|CommandButton"
        FirstPageCaption="string|First"
        FirstPageCssClass="string"
        LastPageCaption="string|Last"
        LastPageCssClass="string"
        MaxPageNumButtons="integer|5"
        NextPageCaption="string|Next"
        NextPageCssClass="string"
        PageNumCssClass="string|CommandButton"
        PageSize="integer|10"
        PrevNextCssClass="string|CommandButton"
        PrevPageCssClass="string"
        PrevPageCaption="string|Prev"
        ScrollToTop="True|False"
       ShowBottomPager="True|False"
        ShowFirstLast="True|False"
        ShowPrevNext="True|False"
        ShowTopPager="True|False">

Type="string"

        ...Display Template (see Remarks)...

</xmod:Template|DataList>

Remarks

Back to top

Example

<xmod:Template ...>
    ...
    <Pager PageSize="15" PageNumCssClass="CommandButton"
      FirstPageCaption="[First]" LastPageCaption="[Last]">
      <table>
        <tr>
          <td>Page <strong>{PageNumber}</strong> of {PageCount}</td>
          <td align="right">{Pager}</td>
        </tr>
      </table>
    </Pager>
    ...

</xmod:Template>
Back to top