Search in column which is not displayed?

Search in column which is not displayed?

schierschier Posts: 5Questions: 2Answers: 0

Hi,
is it possible to search within a column of the table displayed with datatables, where the column I want to search in is not printed out?

Thank you in advance,
best regards

This question has an accepted answers - jump to answer

Answers

  • schierschier Posts: 5Questions: 2Answers: 0

    Ok solved, it is possible by displaying the column by default and then hiding it with the api

  • allanallan Posts: 63,530Questions: 1Answers: 10,473 Site admin
    Answer ✓

    You shouldn't need to hide it with the API - the columns.visible option should be enough on initialisation. The searchablity of a column is controlled by columns.searchable.

    Allan

  • schierschier Posts: 5Questions: 2Answers: 0

    Ok, thank you very much!

This discussion has been closed.