Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82109

Infinite scrolling w/ server-side processing and adding new entries to beginning of table

$
0
0
I have a use case in which I want to use DataTable as a "log viewer" for a large number of entries and where new log entries will appear. The number of logs are potentially large so I'm using server-side process with infinite scrolling. I would also like to query the backend on a regular interval for any new log entries that have arrived since the table was initially displayed. The server-side processing/infinite scroll works great. However, when I get new log entries and attempt to load them via fnAddData the table essentially gets reset -- and the documentation is clear this usage is not allow. That said, does anyone have any suggestions on how to combine server-side processing and infinite scroll with the ability to inject new rows at the beginning of the table without messing up the scrolling and table pagination state? I'd like any new rows added to the beginning of the table without changing the current pagination state and the user would only see those new rows if they scrolled back to the beginning of the table.

Viewing all articles
Browse latest Browse all 82109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>