Skip to content

DevExpress-Examples/devextreme-datagrid-configure-routing-based-on-http-verb-attributes-to-support-crud-asp.net-mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET DataGrid for DevExtreme - 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.

Implementation Details

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.

Files to Review

Documentation

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates how to configure routing based on Http[Verb] attributes to support CRUD operations in DataGrid.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages