Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

737
Views
JavaScript - How to loop through every row in every page in a DataTable

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.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

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.

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!