Can't fix header with column filter dropdowns
Can't fix header with column filter dropdowns
I've got a datatable with a fixed header and column filter dropdowns which extend when hovered. But the dropdowns don't extend as they should. I've traced the problem to scrollY and scrollX in table initialisation. If I remove both scroll commands, the dropdowns work well, but the header is no longer fixed, and I need it to be fixed. I've tried using sScrollXInner and sScrollYInner, which do allow the column filter dropdowns to work, but again, the header is no longer fixed. I've also tried a number of 'z-index' options with 'relative' in CSS, but nothing seems to work. Any help much appreciated
Fiddle: https://jsfiddle.net/5djcocuL/
This question has an accepted answers - jump to answer
Answers
The
div.dataTables_scrollHead
element hasoverflow: hidden;
on it which is causing the issue.should address it, although I'm not certain if there will be any side effects in DataTables.
https://jsfiddle.net/5djcocuL/1/
Allan
You Sir are a GENIUS! I can't see any side effects caused. I owe you a drink.
Make it an ale
Allan