https://github.com/kant2002/aspnetcore.helpers
.NET Core port for the System.Web.Helpers
https://github.com/kant2002/aspnetcore.helpers
webgrid
Last synced: about 1 year ago
JSON representation
.NET Core port for the System.Web.Helpers
- Host: GitHub
- URL: https://github.com/kant2002/aspnetcore.helpers
- Owner: kant2002
- License: mit
- Created: 2018-01-21T09:02:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T09:46:20.000Z (over 4 years ago)
- Last Synced: 2025-03-31T12:57:23.404Z (about 1 year ago)
- Topics: webgrid
- Language: C#
- Size: 266 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ASP.NET Core WebGrid replacement
=================
This package trying to be in-place replacement for the WebGrid usage.
But I don't yet manage to make this happens 100%.
Changes which should be done
Add following lines in the `_ViewImports.cshtml`
@using AndreyKurdiumov.AspNetCore.Helpers
@inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContextAccessor
Where WebGrid constructed should be add contructor parameter HttpContextAccessor
var grid = new WebGrid(HttpContextAccessor, source: this.Model.Tables,
defaultSort: "TableName",
rowsPerPage: 30);