Hi
I have one button, by clicking the button the webgrid will be refresh or reload. How can I implement in MVC 5
Thank you
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
R JPosted Aug 27, 2014, 8:15 PM
1. Create a partialview with webgrid inside it.
2. Place a div tag(lets name it 'mydiv') where ever you want to show webgrid
3. On button click, call jquery get method to fill the partialview into div tag.
Sample code is here
Jquery call on button click --
In Controller ---