Hi,
My grid definition is as below
@(Html.Kendo().Grid(Model).Name("RegionAprv")
.TableHtmlAttributes(new { style = "table-layout: fixed; width:245px;" })
.DataSource(dataSource => dataSource.Ajax()
.Model(model => model.Field(p => p.RegionUid).DefaultValue(0))
.Model(model => model.Id(p => p.RegionUid))
.Batch(false)
.Read(read => read.Action("GridRead", "MyControl").Data("<js method>"))
.Create(create => create.Action("GridInsert", "MyControl").Data("<js method>"))
.Update(update => update.Action("GridUpdate", "MyControl").Data("<js method>"))
.Events(events => events.RequestEnd("<js method>")
.Error("<js method>")
) )
.Columns(columns => {
....
})
.EnableCustomBinding(false)
.Selectable()
.Editable(editing => editing.Mode(Kendo.Mvc.UI.GridEditMode.InLine))
.Events(events => events.DataBound("onGridDataBound")
.Save("onGridSave")
.Edit("onGridEdit")
.Change("onGridChange")
)
)
JQuery file
onGridSave: function (e) {
...
},
On Save I am calling grid.saveRow(). It should exeute the onGridSave but it is not doing so. I once the breakpoint is on grid.saveRow() step over just does nothing.
Please help
Regards,
Sanjay
My grid definition is as below
@(Html.Kendo().Grid(Model).Name("RegionAprv")
.TableHtmlAttributes(new { style = "table-layout: fixed; width:245px;" })
.DataSource(dataSource => dataSource.Ajax()
.Model(model => model.Field(p => p.RegionUid).DefaultValue(0))
.Model(model => model.Id(p => p.RegionUid))
.Batch(false)
.Read(read => read.Action("GridRead", "MyControl").Data("<js method>"))
.Create(create => create.Action("GridInsert", "MyControl").Data("<js method>"))
.Update(update => update.Action("GridUpdate", "MyControl").Data("<js method>"))
.Events(events => events.RequestEnd("<js method>")
.Error("<js method>")
) )
.Columns(columns => {
....
})
.EnableCustomBinding(false)
.Selectable()
.Editable(editing => editing.Mode(Kendo.Mvc.UI.GridEditMode.InLine))
.Events(events => events.DataBound("onGridDataBound")
.Save("onGridSave")
.Edit("onGridEdit")
.Change("onGridChange")
)
)
JQuery file
onGridSave: function (e) {
...
},
On Save I am calling grid.saveRow(). It should exeute the onGridSave but it is not doing so. I once the breakpoint is on grid.saveRow() step over just does nothing.
Please help
Regards,
Sanjay