Can I combine the multiple search criteria across multiple columns
Can I combine the multiple search criteria across multiple columns
Using the API / javascript
For example I have a column named 'colour' and a column named 'shape' In the rows I have:
Pink Square
Red Square
Pink Circle
Blue Triangle
Blue Circle
Is it possible to filter the
Pink Circle
AND
Blue Triangle
myTable
.column(0)
.search(['Pink', 'Blue'].filter(Boolean).join("|"), true, false)
.column(1)
.search(['Circle', Triange].filter(Boolean).join("|"), true, false)
.draw();
Using the above I get
Pink Square
Pink Circle
Blue Triange
Blue Circle
Answers
I would probably create a search plugin for this. I create this example for something but it should give you an idea of what to do.
http://live.datatables.net/rosahuka/1/edit
Kevin