BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource(d => d.URL("/Grid/GetData").InsertURL("/Grid/PerformInsert")
.UpdateURL("/Grid/PerformUpdate") .RemoveURL("/Grid/PerformDelete").Adaptor(AdaptorType.UrlAdaptor))
.AllowPaging() /*Paging Enabled*/
.EditSettings(e => e.AllowEditing().AllowDeleting().AllowAdding())
.ToolbarSettings(tool => tool.ShowToolbar().ToolbarItems(item =>
{ |
public ActionResult PerformInsert(Employee value)
{
. . . .
}
//Perform update
public ActionResult PerformUpdate(Employee value)
{
. . . .
}
//Perform delete
public ActionResult PerformDelete(int key)
{
. . . . .
} |
|
Hi!
I found what was missing with the example that you attached, I needed to return the value of the object that was inserted instead a true value:
Thanks for the help!
Regards.