Last Updated 2/1/2016



Required Parameters

pageNumber - the current page number
pageCount - the number of pages
recordList - a list of records used to get the pageNumber and pageCount

Optional Parameters

  • options - a set of PagerOptions that control output
    • PagerOptions.QueryString - use the querystring (links use href)
    • PagerOptions.Ajax - use ajax (links hava a data-id attribute instead of hrefs)
    • PagerOptions.Bootstrap - use Bootstrap styles
  • spanPages - the number of links before and after the current page spanned by the pager
  • template - A template used to render the pager. It receives two properties
    • item.pageNumber
    • item.pageCount

Example Result (Default style/QueryString)

<div class="brt-pagination">
	<span>Page 1 of 3</span>
		<a href="/friendly">1</a>
		<a href="/friendly?page=2">2</a>
		<a href="/friendly?page=3">3</a>
		<a href="/friendly?page=2">next</a>

Example Result (Bootstrap/Ajax)

<div class="pagination">
	<span>Page 1 of 4</span>
		<li><a href="#" data-page="1">1</a></li>
		<li><a href="#" data-page="2">2</a></li>
		<li><a href="#" data-page="3">3</a></li>
		<li><a href="#" data-page="4">4</a></li>
		<li><a href="#" data-page="2">next</a></li>

Want to learn more?

Call 800-924-5220 or

Schedule a demo