Skip to content

Instantly share code, notes, and snippets.

@troygoode
Created June 29, 2011 04:35
Show Gist options
  • Save troygoode/1053159 to your computer and use it in GitHub Desktop.
Save troygoode/1053159 to your computer and use it in GitHub Desktop.
PagedList Custom RenderOptions
public class MyRenderOptions : PagedList.Mvc.PagedListRenderOptions{
public MyRenderOptions() : base(){
DisplayLinkToFirstPage = false;
DisplayLinkToLastPage = false;
DisplayLinkToIndividualPages = false;
LinkToPreviousPageFormat = "< Go Back";
LinkToNextPageFormat = "Go Forward >";
}
}
//use like so:
@Html.PagedListPager(myPagedList, page => Url.Action("Index", new { page = page }), new MyRenderOptions())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment