This question is locked. New answers and comments are not allowed.
I have set up TemplateName like this
Editable(editing => editing.Mode(GridEditMode.PopUp).TemplateName("AdminUserForm"))
to have my own editor form. I also create partial view
AdminUserForm.cshtml
@model PC.Models.UserViewModel
@{
Layout = null;
}
@Html.EditorFor(p=>p.FirstName)
@Html.EditorFor(p=>p.LastName)
My action looks like
public ActionResult AdminUserForm(UserViewModel model)
{
return View(model);
}
Unfortunately Grid still loads default edit form. Why my partial view is not loaded? Actual Grid view file and AdminUserForm.cshtml are in the same folder under Views\Admin. The AdminUserForm action is never called.
Editable(editing => editing.Mode(GridEditMode.PopUp).TemplateName("AdminUserForm"))
to have my own editor form. I also create partial view
AdminUserForm.cshtml
@model PC.Models.UserViewModel
@{
Layout = null;
}
@Html.EditorFor(p=>p.FirstName)
@Html.EditorFor(p=>p.LastName)
My action looks like
public ActionResult AdminUserForm(UserViewModel model)
{
return View(model);
}
Unfortunately Grid still loads default edit form. Why my partial view is not loaded? Actual Grid view file and AdminUserForm.cshtml are in the same folder under Views\Admin. The AdminUserForm action is never called.