Documentation for bFilter

Documentation for bFilter

mattclementsmattclements Posts: 7Questions: 0Answers: 0
edited February 2012 in Bug reports
Hello there,
On your features page (http://datatables.net/usage/features) there is the following:

"Enable or disable filtering of data. Filtering in DataTables is "smart" in that it allows the end user to input multiple words (space separated) and will match a row containing those words, even if not in the order that was specified (this allow matching across multiple columns). Note that if you wish to use filtering in DataTables this must remain 'true' - to remove the default filtering input box and retain filtering abilities, please use"... but then no details of the alternative.

I am after using oSearch to set the automatic filter, but not show the standard field.

Regards,
Matt

Replies

  • allanallan Posts: 63,383Questions: 1Answers: 10,449 Site admin
    It looks like it is working okay for me: http://live.datatables.net/evehud/edit . Perhaps you can run your table through the debugger ( http://debug.datatables.net ) so I can see the configuration of the table.

    Allan
  • mattclementsmattclements Posts: 7Questions: 0Answers: 0
    edited February 2012
    Please see the following Debug (PM'ed to you) (if you can let me know when you are done I will delete this as this contains data from our new system).

    This seems to be that by using sAjaxSource to pull a dynamic JSON file, the oSearch doesn't get passed to the server, as bFilter is set to false.
  • allanallan Posts: 63,383Questions: 1Answers: 10,449 Site admin
    Thanks for running the debugger over it - all done now. You've hit the issue spot on. You've disabled filtering, so filtering is disabled :-). If you want to use filtering, but just don't want the filtering control to appear above the table use sDom and remove the 'f' option.

    Allan
  • mattclementsmattclements Posts: 7Questions: 0Answers: 0
    edited February 2012
    Thanks Allan,
    I have changed this to:
    [code]"sDom":'<"H"lr>t<"F"ip>',[/code]
    and all is well.

    On the features page (/usage/features) could the bFilter section be changed from:

    [quote]Enable or disable filtering of data. Filtering in DataTables is "smart" in that it allows the end user to input multiple words (space separated) and will match a row containing those words, even if not in the order that was specified (this allow matching across multiple columns). Note that if you wish to use filtering in DataTables this must remain 'true' - to remove the default filtering input box and retain filtering abilities, please use[/quote]

    to

    [quote]Enable or disable filtering of data. Filtering in DataTables is "smart" in that it allows the end user to input multiple words (space separated) and will match a row containing those words, even if not in the order that was specified (this allow matching across multiple columns). Note that if you wish to use filtering in DataTables this must remain 'true' - to remove the default filtering input box and retain filtering abilities, please use sDom[/quote]
  • allanallan Posts: 63,383Questions: 1Answers: 10,449 Site admin
    Thanks for flagging that up - I had a typo in my relative link to sDom. I've just committed the fix and the docs will be updated with the 1.9.1 release which will be soon :-)

    Allan
  • mattclementsmattclements Posts: 7Questions: 0Answers: 0
    Brill thanks :)
This discussion has been closed.