This knowledge base document explains you how to perform CRUD operation in Grid using UrlaAdaptor within the ASP.NET Core Razor page.
Solution
In ASP.NET Core, we have support to bind dataSource and perform CRUD operation without using controller class. Kindly follow the below steps to perform CRUD operation in Grid within the Razor page.
Since this razor page does not have specific controller page. Grid Datasource and CRUD actions mapping urls can be set by using the @page “{handler?}” in razor page. Refer the below code example.
C# [ModelPage]
Refer the below screenshot as the output of above code example
|
Article ID: | Published Date: | Last Revised Date: | Platform: | Control: |
9283 | 09/18/2018 | 09/18/2018 | ASP.NET Core | Grid |
or the page will be automatically redirected to sign-in page in 10 seconds.
Is there any difference in using EJ2 Grid? Since there is no DataManger, would you just use DataManagerRequest DM in the code behind?