How to use webGrid shoring and paging in mvc
2242
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
GetData
function will get the data for the Web Grid. Theweb-grid
element will be used to create the Web Grid. ThedataSource
attribute of theweb-grid
element will be bound to the data returned by theGetData
function. ThepageSize
attribute of theweb-grid
element will set the number of records to be displayed per page.The
web-grid
element will be bound to thewebGrid
method of theWeb Grid
library. ThewebGrid
method 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