Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 567
Lapenkov Vladimir Avatar asked Mar 07 '23 20:03

Lapenkov Vladimir


1 Answers

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

like image 110
Lapenkov Vladimir Avatar answered Mar 20 '23 14:03

Lapenkov Vladimir