disable search box and enable search columns
disable search box and enable search columns
merlin2049er
Posts: 6Questions: 2Answers: 0
I have a search box with a magnifying lens in the table header. It's id ='datatable_filter', I don't need this (but it's working), I need to disable this and get my search columns over every column filtering. ( id="datatable_search_columns" , which isn't working...)
Answers
Guessing you are setting
searching
to false to remove the search element. This also turns off all table searching. Instead use thedom
option to define which elements Datatables displays, ie, remove thef
from the default value.If this doesn't help then post a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Good, setting searching option to false turns off that magnifying glass (search) in the table header.
Now, how do I enable the search over each column?
Here are a couple examples:
https://datatables.net/examples/api/multi_filter.html
https://datatables.net/examples/api/multi_filter_select.html
Kevin