How to use webGrid shoring and paging in mvc
2542
25-Dec-2015
I want to use shoring and paging in mvc How to use this Please Help me.
Aryan Kumar
03-Jul-2023Sure, here are the steps on how to use Web Grid shoring and paging in MVC:
Here is an example of the code:
HTML
This code will add the Web Grid library to your ASP.NET project. The
GetDatafunction will get the data for the Web Grid. Theweb-gridelement will be used to create the Web Grid. ThedataSourceattribute of theweb-gridelement will be bound to the data returned by theGetDatafunction. ThepageSizeattribute of theweb-gridelement will set the number of records to be displayed per page.The
web-gridelement will be bound to thewebGridmethod of theWeb Gridlibrary. ThewebGridmethod will handle the events of the Web Grid.Anonymous User
25-Dec-2015We can define WebGrid to display data on a web page using an HTML table element. It renders tabular data in a very simple manner with support for custom formatting of columns, paging, sorting.
The main properties in WebGrid are:
Index.cshtml