when i use editmode as
Dialog, it display Id which is PK in the dialog and when i save it, it will post as 0. this cause modalstate.IsValid=false. is there anyway to omit this field or fix it somehow?
@(Html.EJ().Grid("Grid")
.Datasource((IEnumerable)Model)
.Datasource(dataSource => dataSource.Json((IEnumerable
)Model).UpdateURL("/FeedBacks/Edit")
.InsertURL("/FeedBacks/Create").RemoveURL("/FeedBacks/Delete").Adaptor(AdaptorType.RemoteSaveAdaptor))
.AllowSorting()
.AllowFiltering()
.AllowResizeToFit()
.AllowResizing()
.FilterSettings(filter => { filter.FilterType(FilterType.Excel); })
.EditSettings(edit => { edit.AllowAdding().AllowDeleting()
.AllowEditing().ShowDeleteConfirmDialog().EditMode(EditMode.Dialog); })
.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);
}).CustomToolbarItems(new List<object>() { new Syncfusion.JavaScript.Models.CustomToolbarItem() { TemplateID = "#Details" } });
}).ClientSideEvents(eve => eve.Create("create").ToolbarClick("ToolBarClick"))
.Columns(col =>
{
col.Field("id").HeaderText("ID").Width(50).IsPrimaryKey(true).AllowEditing(false).Add();