The edit button goes back to my controller as a 'Get' but I would like to change it to a 'Post'. Is this possible?
@(Html.Kendo().Grid(Model)
.Name(
"Grid"
)
.Columns(columns =>
{
columns.Bound(p => p.Id).Width(25);
columns.Bound(p => p.Name).Width(240);
columns.Bound(p => p.City).Width(170);
columns.Bound(p => p.State).Width(170);
columns.Command(command =>
{
command.Edit();
command.Custom(
"Delete"
).Click(
"deleteIt"
);
}).Width(166);
})
.Scrollable()
.Editable(editable => editable.Mode(GridEditMode.InLine))
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(p => p.Id))
//.Read("PropertyRead", "Property"))
.Read(read => read.Action(
"PropertyRead"
,
"Property"
))
.Update(update => update.Action(
"Update"
,
"Property"
))
.Destroy(destroy => destroy.Action(
"Delete"
,
"Property"
))
)
)