5

I am developing an ASP.NET MVC 4 application using MVC scaffolding. Currently it returns all rows in a single fetch and displays them in the grid. However, I want to implement paging within the same so that it doesn't create any problem when the data are in large volume.

Any idea of how can we implement paging quick and easy way in MVC 4?

Nirman
  • 6,715
  • 19
  • 72
  • 139

1 Answers1

7

This link helped me to find out the proper way for paging, sorting and filtering.

Nirman
  • 6,715
  • 19
  • 72
  • 139
  • 2
    It's best that you include the relevant parts of the link in your answer so that when the link dies the answer doesn't die with it. – Shelby115 Jun 28 '18 at 12:14
  • @Shelby115, the link I have provided is from official site of Microsoft. They dont take off the page from their site at least until the product version becomes completely non-supported/ obsolete. Also, if the link survived for 5+ years (as I answered in Jun, 2013), then I believe the answer is useful.. – Nirman Jun 29 '18 at 09:53
  • ASP.NET Core 5 version: https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/sort-filter-page?view=aspnetcore-5.0 – Flavio Spedaletti Oct 25 '21 at 14:28