Can you select which fields you want to filter on?

Can you select which fields you want to filter on?

swiftdswiftd Posts: 1Questions: 0Answers: 0
edited December 2010 in General
At the moment, the filter searches all of the fields in my table. Is there a way to specify which fields it works on? Ideally I need to be able to do this dynamically, is that possible? Thanks for reading.

Replies

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    http://datatables.net/usage/columns#bSearchable can be used for this. It is possible to change it at run time, but you'll need to modify the DataTables internal data store - fnSettings().aoColumns[ i ].bSearchable is the property you need.

    Allan
This discussion has been closed.