This question is locked. New answers and comments are not allowed.
Hi All,
Following the Telerik Example for updating a grid on popup I have the following set for my binding;
Now back in the controller If I have:
When I press my update button the Id of the record in the popup is passed correctly to my controller. However, at this time I do not want to make an actual update. I only want to update the viewmodel. So What I really want in my post action is:
So, back in my bindings, How do I force the current view to be passed as well as the ID? I also want to obtain all the details from the popup.
Following the Telerik Example for updating a grid on popup I have the following set for my binding;
.DataKeys(keys => keys.Add(r => r.Id)) .DataBinding(dataBinding => { dataBinding.Ajax() .Update("_SaveAjaxEditing", "Grid"); }) Now back in the controller If I have:
[AcceptVerbs(HttpVerbs.Post)] [GridAction] public ActionResult _SaveAjaxEditing(int id) {......When I press my update button the Id of the record in the popup is passed correctly to my controller. However, at this time I do not want to make an actual update. I only want to update the viewmodel. So What I really want in my post action is:
[AcceptVerbs(HttpVerbs.Post)] [GridAction] public ActionResult _SaveAjaxEditing(ComputerBreakdownRiskViewModel viewModel,int id) {.....So, back in my bindings, How do I force the current view to be passed as well as the ID? I also want to obtain all the details from the popup.