Multi filter + Colvis error when new column is visible
Multi filter + Colvis error when new column is visible
tecneca
Posts: 1Questions: 1Answers: 0
Hi all.
We are using Clovis from a while (I know it's legacy) https://datatables.net/extensions/colvis/#Example
Now we add the multi filter column search ( https://datatables.net/examples/api/multi_filter.html ) and paginate data to save performance.
The first render works ok, but if I put visible a new column, the new thead is not an input, it's a label instead.
Answers
I built this example with the current Colvis:
https://live.datatables.net/cuyoriva/1/edit
Starting with a hidden column, using the code you linked to, works. Unhide the Position column and you will see the search input.
Presumably you are doing something different since your search inputs are in the header. You might need to make sure to populate the second header before initializing Datatables otherwise the hidden columns might not be found with the code you aer using.
Please provide a simple test case replicating the issue you are seeing so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Maybe this FixedHeader integration example will do what you want.
Kevin