Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Pagination buttons active before table completed

$
0
0

I have a table instance which can return a lot of records (hundreds to thousands), and can take a long time to render, so I'm doing server-side pagination on it. It's working fine except for one small issue.

When the table first renders, it shows the link buttons for all of the pages, but the links are active before the code fetches all of the pages. As a result, it's possible to click on the link for the last page (or any intermediate page) before that page has loaded. I can watch the update requests in the browser console.

What happens is that the display silently goes back to the first page instead of displaying the requested page - not unreasonable but pretty confusing for the end users who don't know why they click the button for, say, page 18 and wind up back at page 1.

Is there some way to disable the page buttons until the relevant page has loaded, and then activate them as each page is retrieved from the server?

Many thanks!


Viewing all articles
Browse latest Browse all 2364

Trending Articles