Search on hidden column...

Search on hidden column...

Kris-IKris-I Posts: 12Questions: 2Answers: 0
edited September 2010 in General
Hello,

I have a table not very large (200px), I'd like display an 3rd column but I can't. I have a firstname and lastname column and the 3rd is a customer number. I'd like hide this 3rd column but the search should work on the 3 column. Is it possible ?

Thanks,

Replies

  • mstrandmstrand Posts: 24Questions: 0Answers: 0
    Columns can be hidden by setting {"bVisible": false } for the columns. See here for examples:

    http://www.datatables.net/examples/basic_init/hidden_columns.html

    By default, the column will remain searchable. By setting bSearchable the column can be excluded from search too, e.g. {"bVisible": false, "bSearchable": false }
This discussion has been closed.