How can I loop through every row in each page, not only the first page?
I am using DataTables v1.10.18 and I've managed to loop through the first 10 records, of the first page, but I could never get past the 1st page.
function loopThroughRows() {
var table = $('#table').DataTable();
table.rows().every(function () {
var data = this.data();
});
}
I've looked everywhere, tried many different examples, but it's still not working for me, maybe I'm missing something?
Thanks in advance.
Thanks to @freedomn-m I've found the issue in my case, the controller was bringing only the 10 records for the current page of the table, so the data was loaded page-by-page from the server, therefore it was not available in the UI.