What is X.PagedList?

This is fork of Troy’s project PagedList(https://github.com/troygoode/PagedList). The main different is that X.PagedList is portable assembly. It means, that you can use it not only in Web projects, but in Winforms, Window Phone, Silverlight and etc. projects.

PagedList is a library that enables you to easily take an IEnumerable/IQueryable, chop it up into “pages”, and grab a specific “page” by an index. PagedList.Mvc allows you to take that “page” and display a pager control that has links like “Previous”, “Next”, etc.
Large
chrome_2016-05-27_11-35-24

@Html.PagedListPager((IPagedList)Model, page => Url.Action("List", "Employees", new { status = @status, page, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter }), new PagedListRenderOptions { UlElementClasses = new[] { "pagination pagination-lg" } })

Small
chrome_2016-05-27_11-35-00

@Html.PagedListPager((IPagedList)Model, page => Url.Action("List", "Employees", new { status = @status, page, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter }), new PagedListRenderOptions { UlElementClasses = new[] { "pagination pagination-sm" } })

via: https://github.com/kpi-ua/X.PagedList

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.