Pagedlist for asp.net core

Lapenkov Vladimir picture Lapenkov Vladimir · Feb 19, 2018 · Viewed 13.5k times · Source

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://docs.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?

Answer

Lapenkov Vladimir picture Lapenkov Vladimir · Feb 19, 2018

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