ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid does not update when the popup is closed
Title:
B
I
{code}
?
I have a grid to display data and a popup to edit the data. When I finish editing and click the Save button, the popup is closed and the database is updated but the grid is not. If I refresh the page, the grid will display the newly updated data. What problem am I facing?
Save Changes
Cancel
minh yrrrt
asked at 23 Feb 2015
Answers
B
I
{code}
?
you should have an InitPopupForm helper declared with .Success js function defined, that js function should call the grid's api and refresh the grid, something like this: $('#gridid').data('api').load(); or it could be something a bit more complex, like in the demo (here: http://demo.aspnetawesome.com/GridCrudDemo) where api.update is used, for api.update you also need to have GridModelBuilder.GetItem defined you can follow the demo code, and look for errors, keep the browser console open, check if you don't have any js errors
Save Changes
Cancel
Omu
answered at 23 Feb 2015
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