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

161
Views
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
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!