Infinite Scroll with Refresh Every 5 Seconds

Infinite Scroll with Refresh Every 5 Seconds

dhinesdhines Posts: 1Questions: 1Answers: 0

Hi, I am trying to setup my datatable to sort of be an infinite scroll with server side processing refreshing the data every 5 seconds.

Basically what I want is to initialize the data with the first 20 rows. When the user scrolls to the last row it needs to add the next 20 rows to the datatable. I also need the functionality to refresh the data every 5 seconds through an ajax call to the database. Is there any way that I can accomplish this?

I've been looking at this example currently: https://datatables.net/extensions/scroller/examples/initialisation/simple.html

Thanks for any information.

This discussion has been closed.