ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Reload Grid on success(OK) of CRUD popup
Title:
B
I
{code}
?
I want to reload my grid on closing of the crud popup i.e. when I click on OK button of popup. The grid doesn't reloads only the record is updated. I want the grid to reload. How to achieve this, please help @Html.InitCrudPopupsForGrid("GridID", "ControllerName") <div class="col-md-4 form-group"> <button type="button" onclick="awe.open('createGridID')" class="btn btn-calm pull-right">Add</button> </div> I'm using old version of AwesomeMVC
Save Changes
Cancel
SalesARM
asked at 17 Mar 2020
Answers
B
I
{code}
?
Inside the `InitCrudPopupsForGrid` you can see 3 `InitPopupForm` helpers declared, inside the `.Success("someJsFunc")` you could call `.Success("utils.refreshGrid('gridId')")`. In the latest version of our demo `InitCrudPopupsForGrid` already has a `reload` parameter, even though you're not using the latest version you could try to use the code for `InitCrudPopupsForGrid` from the lastest MVC main demo
Save Changes
Cancel
Omu
answered at 17 Mar 2020
used the new versions code thanks
at 17 Mar 2020
SalesARM
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