Using the Datagrid in new ASP.net core WEB (Razor pages only) applications
just started using in an asp net core 2.2/3.0 Razor pages alone app. In that environment, there are no MVC Controllers used, so my question is : HOW CAN I USE your grid WITHOUT controllers. Without controllers I can't return Json data for the grid, and I do not know how I can provide data for your grid WITHOUT going through a controller.
asked at 07 Oct 2019
You can download our razor pages demo here: https://www.aspnetawesome.com/Download/RazorPagesDemo Our razor pages demo has 2 pages: - one is using page methods (alternative to controllers for ajax in razor pages), - and the other is using controllers to get data, so there are controllers in Razor Pages if you want to use them just download it, run it, and have a look at the code, you'll see `DataController.cs` where we have `GridGetItems` action used for a grid.
answered at 08 Oct 2019
Thanks for a quick reply again. I didn't even notice Page1.html razor page until I read your answer (other one is using page methods (alternative to controllers for ajax in razor pages). So I have now made good progress in that NEW project I created to test the grid with a single small DBSet table in the Data Context. So I will now apply this progress to my current REAL Database Project and get back to you if I get stumped along the way. I'm happy I don't have to deal with adding controllers files.
at 08 Oct 2019
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our