ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
refresh grid inside partial view on ajax success
Title:
B
I
{code}
?
i have one page. in that page i am rendering grid using partial view... when i submit data that grid (inside partialview) should be refresh automatically WITHOUT PAGE LOAD.
Save Changes
Cancel
JD
asked at 26 Nov 2015
to reload the grid call $('#Grid1').data('api').load()
at 26 Nov 2015
Omu
i am getting this error -------------------------- TypeError: $(...).data(...) is undefined -----------------------------
at 27 Nov 2015
JD
having a grid like this Html.Awe().Grid("Grid1") you can call in js $('#Grid1').data('api'); if this doesn't work you're probably having some other js errors, maybe you're importing jquery more than once, for example your might need to set _Layout = null in your partial
at 27 Nov 2015
Omu
thanks a lot my friend i got the error.. i m just giving jquery reference more than one time... once again thanks a lot
at 27 Nov 2015
JD
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