Hide column from search pane

Hide column from search pane

chrisindfwchrisindfw Posts: 9Questions: 3Answers: 0

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

Answers

This discussion has been closed.