This repository has been archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For implementing columnar filtering: added a function to check if any…
… of the sSearch fields exist, added sSearch_x fields to where query. TODO: implement for containable behavior
- Loading branch information
Jake Zieve
committed
Jun 24, 2014
1 parent
997dae3
commit 585c5ba
Showing
1 changed file
with
46 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
585c5ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide an example of how this feature is used? Specifically I am interested in what the datatables js code looks like. I was not aware (until now) that I could limit string searches to specific columns. Please show example code.
585c5ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, here is the documentation -> http://datatables.net/examples/api/multi_filter.html. I just checked the console for the ajax calls and looked at the parameters to see the "sSearch_i" fields. Though for some reason I don't see anything in the console for the ajax calls on the datatables website, if you check your own examples you should see it.
585c5ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. This has been merged into the dev branch. It will need some more testing before going into master.