disable Search Filter Text box

disable Search Filter Text box

rasikowrasikow Posts: 20Questions: 0Answers: 0
edited May 2009 in General
HI,

How to disable Search Text box?

- Gnaniyar Zubair

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Two options, you can either remove the "f" option from the sDom, or set bFilter (the filtering feature) to false. Use the sDom option if you want to use the fnFilter() API function.

    Allan
  • rasikowrasikow Posts: 20Questions: 0Answers: 0
    Thanks Allan for your support

    - Gnaniyar Zubair
  • carteriiicarteriii Posts: 25Questions: 1Answers: 0
    I'd like to remove the global search box, but leave the column filtering functionality in tact. It appears that setting bFilter: false removes the global search box, but it also disables column filtering. Is there a simple option to only remove the global search box? As a workaround, I have used CSS and set .dataTables_filter { visibility: hidden;}, but I wanted to ask if there was another option. Thanks in advance.
  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    You can remove the filtering input element using sDom: http://datatables.net/usage/options#sDom

    Allan
  • carteriiicarteriii Posts: 25Questions: 1Answers: 0
    Ah, sorry I missed that. That works perfectly. Thank you.
This discussion has been closed.