fnFilter with OR operation on datatable
fnFilter with OR operation on datatable
Hi ,
fnFilter only works for "AND" operation. I want "OR" operation as well.
PFB the test case for same.
Open http://live.datatables.net/welcome/1/edit.
Search for "Software Engineer" in global text search field available. Giving 7 rows as the output.
I m again searching for 61. This is again filtering from the above 7 rows. Here it is performing AND operation.
What I need is "OR" operation to be performed on the datatable while searching.
1)Search only for "Software Engineer" --> O/p 7 rows.
2)Search only for "61" --> 3 rows.
Now if I try "Software Engineer 61" it should display 7+3 i.e. 11. The lesser number of rows may come in case if there is any common row available which is having Software Engineer and 61 in different cells of the same row. This is my requirement. Can you please tell me how to achieve this.
Regards,
Ssurajita
Answers
Hi Alan,
Can you please let me know is there any fnFilter() config available for OR operation?
--
Regards
Soumya