asp.net-corepagedlist

Pagedlist for asp.net core


In MVC 5 (.Net Framework 4.6) i used PagedList.Mvc with following solutions:

  1. It separates query into pages and gets results for needed page (not all query results).
  2. It used HtmlHelper to render group of buttons with needed filter!
    1. I could customize numbers of pager buttons to display (if get large resultset).

In asp.net core 2.0 documentation https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/sort-filter-page i can't find 2 and 3 solutions. Does anyone know better approach?


Solution

  • I tried PagedList from https://github.com/dncuug/X.PagedList it worked!