Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

163
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda