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 16 days ago
there are controllers in Razor Pages, if you download our razorpages demo https://www.aspnetawesome.com/Download/RazorPagesDemo you'll see `DataController.cs` where we have `GridGetItems` action used for a grid. our razor pages demo has 2 pages one is using controllers to get data, and the other one is using page methods (alternative to controllers for ajax in razor pages), just download it, run it, and have a look at the code.
answered 16 days ago
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.
15 days ago
to leave an answer