PagedList.Mvc
Options for configuring the output of .
The default settings, with configurable querystring key (input field name).
The default settings.
The text to show in the form's input label.
"Go to page:"
The text to show in the form's submit button.
"Go"
The querystring key this form should submit the new page number as.
"page"
The HTML input type for this field. Defaults to the HTML5 "number" type, but can be changed to "text" if targetting previous versions of HTML.
"number"
Extension methods for generating paging controls that can operate on instances of IPagedList.
Displays a configurable paging control for instances of PagedList.
This method is meant to hook off HtmlHelper as an extension method.
The PagedList to use as the data source.
A function that takes the page number of the desired page and returns a URL-string that will load that page.
Outputs the paging control HTML.
Displays a configurable paging control for instances of PagedList.
This method is meant to hook off HtmlHelper as an extension method.
The PagedList to use as the data source.
A function that takes the page number of the desired page and returns a URL-string that will load that page.
Formatting options.
Outputs the paging control HTML.
Displays a configurable "Go To Page:" form for instances of PagedList.
This method is meant to hook off HtmlHelper as an extension method.
The PagedList to use as the data source.
The URL this form should submit the GET request to.
Outputs the "Go To Page:" form HTML.
Displays a configurable "Go To Page:" form for instances of PagedList.
This method is meant to hook off HtmlHelper as an extension method.
The PagedList to use as the data source.
The URL this form should submit the GET request to.
The querystring key this form should submit the new page number as.
Outputs the "Go To Page:" form HTML.
Displays a configurable "Go To Page:" form for instances of PagedList.
This method is meant to hook off HtmlHelper as an extension method.
The PagedList to use as the data source.
The URL this form should submit the GET request to.
Formatting options.
Outputs the "Go To Page:" form HTML.
A tri-state enum that controls the visibility of portions of the PagedList paging control.
Always render.
Never render.
Only render when there is data that makes sense to show (context sensitive).
Options for configuring the output of .
The default settings render all navigation links and no descriptive text.
Enables ASP.NET MVC's unobtrusive AJAX feature. An XHR request will retrieve HTML from the clicked page and replace the innerHtml of the provided element ID.
The preferred Html.PagedList(...) style options.
The ajax options that will put into the link
The PagedListRenderOptions value passed in, with unobtrusive AJAX attributes added to the page links.
Enables ASP.NET MVC's unobtrusive AJAX feature. An XHR request will retrieve HTML from the clicked page and replace the innerHtml of the provided element ID.
The element ID ("my_id") of the element whose innerHtml should be replaced, if # is included at the start this will be removed.
A default instance of PagedListRenderOptions value passed in, with unobtrusive AJAX attributes added to the page links.
Enables ASP.NET MVC's unobtrusive AJAX feature. An XHR request will retrieve HTML from the clicked page and replace the innerHtml of the provided element ID.
Ajax options that will be used to generate the unobstrusive tags on the link
A default instance of PagedListRenderOptions value passed in, with unobtrusive AJAX attributes added to the page links.
CSS Classes to append to the <div> element that wraps the paging control.
CSSClasses to append to the <ul> element in the paging control.
CSS Classes to append to every <li> element in the paging control.
Specifies a CSS class to append to the first list item in the pager. If null or whitespace is defined, no additional class is added to first list item in list.
Specifies a CSS class to append to the last list item in the pager. If null or whitespace is defined, no additional class is added to last list item in list.
If set to Always, always renders the paging control. If set to IfNeeded, render the paging control when there is more than one page.
If set to Always, render a hyperlink to the first page in the list. If set to IfNeeded, render the hyperlink only when the first page isn't visible in the paging control.
If set to Always, render a hyperlink to the last page in the list. If set to IfNeeded, render the hyperlink only when the last page isn't visible in the paging control.
If set to Always, render a hyperlink to the previous page of the list. If set to IfNeeded, render the hyperlink only when there is a previous page in the list.
If set to Always, render a hyperlink to the next page of the list. If set to IfNeeded, render the hyperlink only when there is a next page in the list.
When true, includes hyperlinks for each page in the list.
When true, shows the current page number and the total number of pages in the list.
"Page 3 of 8."
When true, shows the one-based index of the first and last items on the page, and the total number of items in the list.
"Showing items 75 through 100 of 183."
The maximum number of page numbers to display. Null displays all page numbers.
If true, adds an ellipsis where not all page numbers are being displayed.
"1 2 3 4 5 ...",
"... 6 7 8 9 10 ...",
"... 11 12 13 14 15"
The pre-formatted text to display when not all page numbers are displayed at once.
"..."
The pre-formatted text to display inside the hyperlink to the first page. The one-based index of the page (always 1 in this case) is passed into the formatting function - use {0} to reference it.
"<< First"
The pre-formatted text to display inside the hyperlink to the previous page. The one-based index of the page is passed into the formatting function - use {0} to reference it.
"< Previous"
The pre-formatted text to display inside the hyperlink to each individual page. The one-based index of the page is passed into the formatting function - use {0} to reference it.
"{0}"
The pre-formatted text to display inside the hyperlink to the next page. The one-based index of the page is passed into the formatting function - use {0} to reference it.
"Next >"
The pre-formatted text to display inside the hyperlink to the last page. The one-based index of the page is passed into the formatting function - use {0} to reference it.
"Last >>"
The pre-formatted text to display when DisplayPageCountAndCurrentLocation is true. Use {0} to reference the current page and {1} to reference the total number of pages.
"Page {0} of {1}."
The pre-formatted text to display when DisplayItemSliceAndTotal is true. Use {0} to reference the first item on the page, {1} for the last item on the page, and {2} for the total number of items across all pages.
"Showing items {0} through {1} of {2}."
A function that will render each page number when specified (and DisplayLinkToIndividualPages is true). If no function is specified, the LinkToIndividualPageFormat value will be used instead.
Text that will appear between each page number. If null or whitespace is specified, no delimiter will be shown.
An extension point which allows you to fully customize the anchor tags used for clickable pages, as well as navigation features such as Next, Last, etc.
Also includes links to First and Last pages.
Also includes links to First and Last pages.
Shows only the Previous and Next links.
Shows Previous and Next links along with current page number and page count.
Shows Previous and Next links along with index of first and last items on page and total number of items across all pages.
Shows only links to each individual page.
Shows Next and Previous while limiting to a max of 5 page numbers at a time.
Twitter Bootstrap 2's basic pager format (just Previous and Next links).
Twitter Bootstrap 2's basic pager format (just Previous and Next links), with aligned links.