Hi,
I am working on Kendo grid inline add/edit/delete
first time when click on add button , the new row will come and can enter values and when press on UPDATE button,its working
but second time click on add button, the new will come and can enter values when press on UPDATE button but e.Type is undefined in Request end event and the newly added row not coming in grid, it stays in dataentry mode
please help me
What I have tried:
@(Html.Kendo().Grid(Model.ActivityList)
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.ActivityName);
columns.Bound(p => p.SelectedActivityDescription).Width(120);
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(250);
})
.ToolBar(toolbar => toolbar.Create())
.Editable(editable => editable.Mode(GridEditMode.InLine))
.HtmlAttributes(new { style = "height:550px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Events(events =>
{
events.Error("error_handler");
events.RequestEnd("OnRequestEnd_TopLinePriceGrid");
events.Change("change");
events.Sync("sync");
events.RequestStart("start");
})
.Model(model =>
{
model.Id(p => p.ActivityID);
model.Field(p => p.ActivityName).Editable(true);
model.Field(p => p.SelectedActivityDescription).Editable(true);
})
.Create(update => update.Action("EditingInline_Create", "Company"))
.Read(read => read.Action("EditingInline_Read", "Company"))
.Update(update => update.Action("EditingInline_Update", "Company"))
.Destroy(update => update.Action("EditingInline_Destroy", "Company"))
))