How to set a 9 pages shows in the pagination with the ..... even in the inverse
I used a code recomendations from a github contribuitor and works very good. But all the pages when incresing the pagination buttons works as infinite regeneration, what I mean is how can I do this as example:
Prev 123456789...Next and when is selected the page 5 for example shows like this:
Prev 5 6 7 8 9 10 11 12 13 ... Next and in the inverse or last page like this:
Prev ... 47 48 49 50 51 52 53 54 55
What I mean guys is to have just a 9 pages on click in the pagination buttons, but I need to implement with the same code :
Hi! Thanks for the recomendation! I'm back with that project!
So, this avoid the infinite loop of pagination in the controls converting to ... and in the end just shows the final pages number instead continuing asigning new pages buttons in the end?
How to set a 9 pages shows in the pagination with the ..... even in the inverse
I used a code recomendations from a github contribuitor and works very good. But all the pages when incresing the pagination buttons works as infinite regeneration, what I mean is how can I do this as example:
Prev 123456789...Next and when is selected the page 5 for example shows like this:
Prev 5 6 7 8 9 10 11 12 13 ... Next and in the inverse or last page like this:
Prev ... 47 48 49 50 51 52 53 54 55
What I mean guys is to have just a 9 pages on click in the pagination buttons, but I need to implement with the same code :
Just to have a limit of 9 pages with the (...) according the page position.
Help!
Something like this might be helpful ;-)
https://weblogs.asp.net/jeff/paging-links-in-asp-net-mvc
Hi, Aaron, First you need 4 new properties:
Then you need to fill those fields:
And then in show the pagination:
Hi! Thanks for the recomendation! I'm back with that project! So, this avoid the infinite loop of pagination in the controls converting to ... and in the end just shows the final pages number instead continuing asigning new pages buttons in the end?
is working on a reply...