Filter with an OR
Filter with an OR
helldiablo
Posts: 2Questions: 2Answers: 0
Can some one point me in the documentation in order to filter by an OR
eg
person.gender = 'male'
OR
person.gender = null
This question has accepted answers - jump to:
This discussion has been closed.
Answers
You would need to use a regex search. Try this example:
https://datatables.net/examples/api/regex.html
In the Name column select
Treat as regex
and uncheckUse smart search
. Start by typing^a
in theColumn - Name
input and you will only see names beginning withA
. Then type|^b
and you will see all the names beginning withB
added to the display.Kevin
This example:
http://live.datatables.net/jiwosaju/154/edit
Was posted from this thread:
https://datatables.net/forums/discussion/51074/filter-a-table-looking-into-multiple-columns#latest
Looks like a good option for an OR search between columns. As long as you are not using server side processing.
Kevin