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

170
Visualizações
Datatables not showing data when searching is enabled

I've a DataTables which get all the data available from an AJAX call which returns this:

enter image description here

I'm not using serverSide option 'cause I'm returning all the data in the first loading, but here the strange behavior: if I disable searching, as this:

let tablePrematch = $('#table-prematch').DataTable({
    processing: true,
    serverSide: false,
    searching: false,
    deferRender: true,
    autoWidth: true,
    colReorder: true,
    pageLength: 100,
    dom: "<'row'<'col-sm-3'l><'col-sm-6 text-center'B><'col-sm-3'f>>" +
        "<'row'<'col-sm-12'tr>>" +
        "<'row'<'col-sm-5'i><'col-sm-7'p>>",

The DataTables correctly display the data. If I set searching: true, then DataTables won't display the rows.

This is weird 'cause the AJAX call actually returns the same response.

I just need to enable the search bar to filter specific columns, what I did wrong?

about 4 years ago · Juan Pablo Isaza
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