How to enable search for hidden column ?
How to enable search for hidden column ?
I am new on datatable and I am stuck at search functionality of datatable. I have table which contain name column but I don't want to show that column in table and I need a search filter on it. I tried with {"sName": "Name", "bVisible": false, "bSearchable": true}, but In this case the coloum and textbox of search filter both are not showing. When I set "bVisible: true" then the text box of filter and column both are showing and also the search works fine. Please help me to handle this case.
This question has an accepted answers - jump to answer
Answers
Works fine for me: http://live.datatables.net/nipirese/1/edit?js,output
Just make sure you use the
columnDefs
, and specifycolumnDefs.searchable
totrue
andcolumnDefs.visible
tofalse
..