Hide one column in multi column filtering

Hide one column in multi column filtering

JanNL_FRJanNL_FR Posts: 47Questions: 15Answers: 2

Hi is it possible to hide one column with the sample https://datatables.net/examples/api/multi_filter.html ?

Jan

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    Answer ✓

    Sure - use columns.visible or column().visible() if you want to do it after initialisation.

    Allan

  • JanNL_FRJanNL_FR Posts: 47Questions: 15Answers: 2

    Thanks Allan,

    And is it also possible to hide just the search option in one Multi-Filter column?

    Jan.

  • JanNL_FRJanNL_FR Posts: 47Questions: 15Answers: 2

    I found it.

    // Disable one filter (index column 3)
    if (index === 2) {
          select.prop('disabled', true);
    }
    
Sign In or Register to comment.