Hide column from search pane
Hide column from search pane

Is there a way to hide a column from the search pane? I have a column that is creating a very large search and I would like it not to appear to the users.
$(document).ready(function() {
$('#controllerList').DataTable( {
"paging": true,
"ordering": true,
"info": true,
"responsive": true ,
"deferRender": false,
"pageLength":25,
"lengthMenu": [25, 50, 75, 100 ],
dom: 'Bfrtip',
columnDefs: [
{
searchPanes: {
preSelect: ['Active']
},
targets:[6]
}
],
buttons:[
'searchPanes'
],
language: {
searchPanes: {
clearMessage: 'Clear Filter',
preSelect: ['Active'],
collapse: {0: 'Search Options', _: 'Search Options (%d)'}
},
targets:[4]
}
});
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I think you want this:
https://datatables.net/reference/option/columns.searchPanes.show
Thank you for your quick comment. That did the trick perfectly. I appreciate it.