Pagedlist for asp.net core
Asked Answered
A

2

6

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?

Arezzini answered 19/2, 2018 at 13:54 Comment(1)
cloudscribe.com/docs/cloudscribe-web-paginationTuantuareg
A
9

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

Arezzini answered 19/2, 2018 at 14:27 Comment(3)
The original PagedList has been abandoned for quite some time now. Even with MVC 5, you should have been using X.PagedList, which is a fork of the original library that is being maintained.Barghest
Is there a @Html.PagedListPager Razor helper in X.PagedList?Evonneevonymus
Yes , github.com/dncuug/X.PagedList/blob/master/examples/…Arezzini
C
1

I used X.PagedList this link was very helpful

https://github.com/troygoode/PagedList/blob/master/README.markdown#example

Ceciliacecilio answered 5/2, 2022 at 14:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.