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

page: 'current' selector-modifier returns too many rows

$
0
0

Hello,

in my table i have a drawCallback that calls another function. In this function I use DataTable().rows( { page: 'current' } ).every to do something (doesn't matter). I have pageLength: 10 set, but the current selector returns 20 rows?! This then causes errors in my function, that's how I noticed in the first place...

Table Data is populated via AJAX. I even tried initialising the table as empty and only add data on button press, but this doesn't change anything.

The table itself displays just fine, with 10 rows per page.

If I sort or switch to another page, the current selector correctly returns the 10 new rows.

What do?


Viewing all articles
Browse latest Browse all 81986

Trending Articles



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