I've got a grid that is in a partial view (loaded into the content of a tabstrip). The grid has an update command which calls a post method on my controller. This is all working properly but the popup window for the editor template does not close after it posts. I know it has to do with what I am returning from my post method but I'm not sure what I should return to allow the window to close. Normally I pass back my view model to the partial view and that is what I am doing now and the window stays open. I've also tried just return PartialView() but with the same result.
Here is my controller post method:
Here is my controller post method:
[HttpPost]public ActionResult UpdateAttachment(int proposalID, AttachmentsViewModel vm){ User user = new User(); int user_id = user.GetUserIDByBNLAccount(User.Identity.Name); if (CheckProposalReadAccess(user_id, proposalID)) { using (var context = new PASSEntities()) { var model = context.Proposal_Attachments.Find(vm.ID); model.Inappropriate_Content = vm.Inappropriate_Content; context.Entry(model).State = System.Data.EntityState.Modified; context.SaveChanges(); return PartialView(vm); } } else { return PartialView(); }}