Column search not working only on one row

Column search not working only on one row

amw2320amw2320 Posts: 2Questions: 1Answers: 0

Hi,

I have a DataTable setup with a few filters from dropdown boxes. Multiple filters are working on multiple columns with the exception of one. I cannot figure out why the column search cannot search on that row. I have setup the table in jsFiddle to show what is happening:

https://jsfiddle.net/e4k576pq/

Notice if you select Vascular under ACGME reqs only three rows show up. None of which have Vascular in the ACGME reqs column. There should be 26.

Even if you try to force the sort with

$('#table').DataTable()
.column(7)
.search('Vascular')
.draw();

The same results are displayed.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,716Questions: 1Answers: 10,108 Site admin
    Answer ✓

    Looks like a bug in the version of DataTables you were using (1.10.1). If you use the latest (1.10.16) it works no problem: https://jsfiddle.net/e4k576pq/1/ .

    Allan

  • amw2320amw2320 Posts: 2Questions: 1Answers: 0

    Thanks. That makes sense, I couldn't figure out what was going on.

This discussion has been closed.