Does anyone know any article or tutorial how to create nice grid for mvc with functions like columns sorting, paging and searching for items inside the grid?
Add sorting functionality to the Index method The query string value is provided by ASP.NET MVC as a parameter to the action method. The parameter is a string that's either "Name" or "Date", optionally followed by an underscore and the string "desc" to specify descending order. The default sort order is ascending.
Pagination is a common requirement in a web application when it comes to show records from the databases or a static source. here we are going to do the pagination in MVC using PagedList nuget package. First create the MVC project and add a controller method to display the data records.
In ASP.NET MVC, the new concept begins WebGrid. WebGrid is lightweight for showing data in report format. As you know, MVC is all about Model View Controller, in this article we will learn how to create a WebGrid and search data and show it in a WebGrid with Entity Framework.
Sorting, Filtering, and Paging with the Entity Framework in an ASP.NET MVC Application
Now the best option is Grid.MVC . which you can download from Nuget.
Website :https://gridmvc.codeplex.com/
Demo :http://gridmvc.azurewebsites.net/
Tutorial :http://www.codeproject.com/Tips/597253/Using-the-Grid-MVC-in-ASP-NET-MVC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With