Is it possible to limit Individual column filtering (select inputs) to specific columns?
Is it possible to limit Individual column filtering (select inputs) to specific columns?
SashaEndoh
Posts: 3Questions: 1Answers: 0
The questions says it all: I have a table where I'd like just a few of the columns to be filterable with select inputs. Is it possible to either define the columns I'd like to be filterable or otherwise limit the select input filtering to specific columns?
Thanks so much!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I understand that I can do this with just CSS and hide the select boxes in those columns, but figured I'd see if there's a more eloquent way to do this.
Assuming that you're using the same code that the example does from http://datatables.net/examples/api/multi_filter_select.html than it's pretty simple not to add the box.
Obviously you'd uncomment the code that I put in, and change the logic inside the if for whatever columns you want to ignore.
Ahh brilliant! Thanks!!