This question is locked. New answers and comments are not allowed.
I have my grid set up like this:
When I look at the edit link, it's always AgencyPersonnel/Index/2?Phone%20Numbers-mode=edit. Shouldn't it be going to the _SaveAjaxEditing controller action? When I try to edit a phone number, it's just reloading the personnel with Id=2 instead.
What am I doing wrong?
Thanks!
@(Html.Telerik().Grid((IEnumerable<
PhoneNumberViewModel
>)Model.PhoneNumbers)
.Name("Phone Numbers")
.DataKeys(keys => keys.Add(c=>c.ID))
.DataBinding(dataBinding => dataBinding
.Ajax()
.Select("_SelectAjaxEditing", "AgencyPersonnel")
.Update("_SaveAjaxEditing", "AgencyPersonnel"))
.Columns(columns =>
{
columns.Bound(a => a.ID).Title("ID");
columns.Bound(a => a.Number).Title("Phone Number").Width(20);
columns.Bound(a => a.Type).Title("Type").Width(10);
columns.Command(commands =>
{
commands.Edit();
}).Width(200);
})//.Groupable()
.Editable(editing => editing.Mode(GridEditMode.PopUp))
.Sortable()
.Filterable()
)
When I look at the edit link, it's always AgencyPersonnel/Index/2?Phone%20Numbers-mode=edit. Shouldn't it be going to the _SaveAjaxEditing controller action? When I try to edit a phone number, it's just reloading the personnel with Id=2 instead.
What am I doing wrong?
Thanks!