Hi Martin,
Thanks for contacting Syncfusion support.
We have prepared a sample based on your requirement which can be download from following link,
In this sample, we have bounded the Grid with Entity framework and enable the CRUD operations through EditSettings in Grid. Please refer to the following code example and Help documentation,
Code example:
@GRID
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
. . .
.SelectionType(SelectionType.Single)
.EditSettings(edit=>{edit.AllowAdding().AllowDeleting().AllowEditing(); })
.ToolbarSettings(toolbar =>
{
toolbar.ShowToolbar().ToolbarItems(items =>
{
items.AddTool(ToolBarItems.Add);
items.AddTool(ToolBarItems.Edit);
items.AddTool(ToolBarItems.Delete);
items.AddTool(ToolBarItems.Update);
items.AddTool(ToolBarItems.Cancel);
});
})
.Columns(col =>
{
. . .
})) |
If you want to perform the server side operation while using Entity framework, then we suggest to you use remoteSave adaptor. Please refer to the following Help documentation for more information,
Regards,
Venkatesh Ayothiraman.