Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

725
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda