columns.searchable

Since: DataTables 1.10

Enable or disable filtering on the data in this column.

Description

Using this parameter, you can defined if DataTables should include this column in the filterable data in the table. You may want use this option to display filtering on generated columns such as 'Edit' and 'Delete' buttons for example.

Type

This option can be given in the following type(s):

Default

  • Value: true

Examples

Disable filtering on the first column with columnDefs:

$('#example').dataTable( {
  "columnDefs": [
    { "searchable": false, "targets": 0 }
  ]
} );

Disable filtering on the first column with columns:

$('#example').dataTable( {
  "columns": [
    { "searchable": false },
    null,
    null,
    null,
    null
  ] } );
} );

Related

The following options are directly related and may also be useful in your application development.