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

Initial invocation of ajax call always has length set to 9 - 1.10.18 differs from 1.10.15

$
0
0

I'm upgrading from 1.10.15 to 1.10.18 and am having difficulty with the ajax requests I'm receiving on the server side. My ajax requests, by the way, are via my own ajax function.

I use scrolling for my tables and with 1.10.15 I always receive a length of 99 for the data requests. With 1.10.18, the initial request is always a length of 9 and subsequent invocations are 99.

On my page I have multiple tables hidden by tabs and the default tab's table is automatically loaded when the page is loaded. With 1.10.18, subsequent ajax calls won't be made to load additional data until I've scrolled through a fair amount of blank space as if DataTables thinks those rows had been loaded. Subsequent calls do, however, request a length of 99 and all scrolling works as expected at that point.

It doesn't seem to matter how the subsequent calls are requested, they always request 99 rows (which is appropriate).

If immediately after completing the first load of the table I issue a DataTable().ajax.reload(), having done nothing else, the load request issues a length of 99.

If after completing the first load of the table I request a different table to be loaded its initial load request is with a length of 99.

If I change the page to have a different table be the first to initially load by setting a different default tab, its initial request is for a length of 9 and subsequent requests issue a length of 99.

1.10.15 always issues a length of 99 for these tables. 1.10.18 issues a length of 9 for the first request and 99 for subsequent.

I've attempted setting pageLength to no avail to try and influence the first load.

The table itself will fit 11 rows. When simply scrolling to request additional rows the ajax call isn't issued until I scroll to about the 50th position. After that scrolling and load requests function as expected.

Any clues where I can look next?

Thanks


Viewing all articles
Browse latest Browse all 2364

Trending Articles