ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Nested grid stay open after save
Title:
B
I
{code}
?
I'm using In nest editing grid and have a problem: nest don't close after saving results. Here is my controller code: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Edit([Bind(Include = "id,login,password,name,lastName,description,phone")] inspector inspector) { if (ModelState.IsValid) { db.Entry(inspector).State = EntityState.Modified; db.SaveChanges(); return new EmptyResult(); } return PartialView("Edit", inspector); }
Save Changes
Cancel
Vladimir Kerzhentsev
asked at 04 Jul 2019
you're supposed to return a `Json(new { Id = dinner.Id });` on successful post, you can see the controller code here: https://demo.aspnetawesome.com/GridCrudDemo
at 04 Jul 2019
Omu
Thank you, this solved my problem.
at 05 Jul 2019
Vladimir Kerzhentsev
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK