Ignore columns in datatables.net search filter
Ignore columns in datatables.net search filter
samuelms2112
Posts: 1Questions: 1Answers: 0
I would like that when I type in the search field (Search - in Red) it disregards some columns in the search (in blue), I looked at the documentation but I couldn't find anything like that, does anyone know how to tell me?
an example why I need it, imagine a Table with Id, name, Date, unit and I'm going to do the search 22, it won't change anything because in the Date column there's 2022, that is, I need to disregard this search column.
Answers
Use
columns.searchable
to disable searching in specific columns.Kevin
I had missed Kevin's reply, and had knocked out this demonstrating it, so might as well post anyway http://live.datatables.net/ziruliku/1/edit
Colin