Auto refresh datatable
Auto refresh datatable
masbon
Posts: 1Questions: 0Answers: 0
hi i am still a beginner in coding, help me how to make auto refresh datatable every 1 sec without eliminating the order function... Please give me example. Thanks
This discussion has been closed.
Replies
Take a look at the examples here:
https://datatables.net/reference/api/ajax.reload()
if you don't want to reload the table from an ajax source but simply redraw it you can use the same logic as above with draw():
https://datatables.net/reference/api/draw()
You'll also want to use
setInterval
to do it periodically.Allan