onebalaban / DataGrid---ASP.NET-MVC---How-to-configure-routing-based-on-Http-Verb-attributes-to-support-CRUD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

License:Other


Languages

Language:JavaScript 98.3%Language:C# 1.6%Language:HTML 0.1%Language:ASP 0.0%