DataGrid - ASP.NET MVC - How to configure routing based on Http[Verb] attributes to support CRUD operations
This example demonstrates how to configure routing based on Http[Verb] attributes to support CRUD operations in DataGrid.
Set the Controller, LoadAction, UpdateAction, InsertAction, and DeleteAction options to true so that dxDataGrid's data source can access corresponding actions in a controller.
.DataSource(d => d.WebApi()
.Controller("DataGridEmployees")
.LoadAction(true)
.UpdateAction(true)
.InsertAction(true)
.DeleteAction(true)
.Key("ID")
)
In the controller, implement data operations in these actions.
See also:
Files to look at: