Get rid of search bar.

Get rid of search bar.

searls03searls03 Posts: 1Questions: 0Answers: 0
edited November 2012 in DataTables 1.8
is there anyway to get rid of the search bar on the datatables?

Replies

  • girishmrgirishmr Posts: 137Questions: 0Answers: 0
    edited November 2012
    If you have used sDom, remove 'f' from it. If you haven't used sDom at all while initializing the DT, then by default you would have got pagination, information, Length Menu and Search Bar. use sDom to display / remove these options.
    See http://datatables.net/usage/options for sDom settings and
    http://datatables.net/styling/ for styling
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    What girishmr says :-).

    One additional option is to use bFilter to completely disable filtering.

    Allan
This discussion has been closed.