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

How to fall back when there is no data on the current page?

$
0
0

Hi, I have the following situation where the user might be on page 10 (10 items per page), some events on the server might clear the data on the server leaving only 5 records. Since I refresh from a timer, out of the blue, the software displays no data. If the user is not aware that the page number is currently empty, it will think there is no data in the table, is not until they manually change to page one, that they notice there is more data on the database.

How can I detect this, and automatically move to either last page?

Thanks,
Luis


Viewing all articles
Browse latest Browse all 82378

Trending Articles



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