ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How does a gridview auto-refresh when the time comes?
Title:
B
I
{code}
?
I want my gridview to refresh automatically every 3 seconds. How do I do this without refreshing the page? Thanks all.
Save Changes
Cancel
Michel
asked at 08 May 2018
Answers
B
I
{code}
?
You can use the grid api and call `$('#GridId').data('api').load()` - this will reload the grid perhaps you should use SignalR and call the above api method not every 3 seconds but when you get a message from SignalR for example have a look at this demo: https://demo.aspnetawesome.com/GridInlineEditDemo try editing a row in one of the grids and note how the other grid gets refreshed, you can also open this page in multiple browser windows to note the update
Save Changes
Cancel
Omu
answered at 08 May 2018
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