fnFilter without Search

fnFilter without Search

BFG86BFG86 Posts: 10Questions: 0Answers: 0
edited April 2013 in DataTables 1.9
Hello everyone. =)
How to use search without displaying the search field in the table header?
To hide the search in the table header do I need the "bFilter":false, but it also disables the search option(oTable.fnFilter( 'test string' );).
Thank you!

Replies

  • BFG86BFG86 Posts: 10Questions: 0Answers: 0
    Initialize the table with my settings:
    [code]
    $("#tevent").dataTable({
    "bDeferRender": true,
    "bPaginate": false,
    "bFilter": false,
    "bJQueryUI": true,
    "bInfo": false,
    "sScrollY": 200,
    "bScrollCollapse": true
    });
    [/code]
  • allanallan Posts: 63,389Questions: 1Answers: 10,449 Site admin
    To use filtering you can't disabled filtering ( bFilter ) since that obviously disables filtering, but if you don't want the search input box, use the sDom option and remove `f` .

    Allan
  • BFG86BFG86 Posts: 10Questions: 0Answers: 0
    edited April 2013
    Allan, thank you!
This discussion has been closed.