An example showing an auto-generated table using the public view model properties using Ajax.
Id | First | Last | Birth Date | Favorite Color | Full Name | |
---|---|---|---|---|---|---|
1 | Vira | Duran | 1978-11-28 | sit.amet@necantemaecenas.co.uk | Vira Duran | |
2 | Daquan | Mcdowell | 1985-01-08 | id.nunc@nuncullamcorpereu.co.uk | Daquan Mcdowell | |
3 | Lysandra | Holloway | 1986-04-11 | dui@donec.edu | Lysandra Holloway | |
4 | Piper | Larsen | 1968-04-14 | scelerisque@volutpatnullafacilisis.org | Piper Larsen | |
5 | Carissa | Mueller | 1964-01-19 | suspendisse.sagittis.nullam@nislnulla.co.uk | Carissa Mueller |
Markup
@model IPagedList<table class="table" asp-for="@Model" ajax="true" />