Fixed header with different scrolling element
Fixed header with different scrolling element
I'm trying to add fixed headers to our tables, but we use a container inside of the body that scrolls instead of the body itself, thus DataTables has no idea when to apply fixed headers.
I found another person asking about the same thing in Oct, 2023. I'm just wondering if this is still something that has not been built?
Here's the other discussion:
https://datatables.net/forums/discussion/77006/is-it-possible-to-have-fixed-headers-when-the-table-is-inside-a-scrollable-container
I understand if not, doesn't seem like a common problem.
Thanks for your time.
This question has an accepted answers - jump to answer
Answers
Hi,
I'm afraid that as of yet, it doesn't work in a container other than the window. It is something that I hope to address as a result of other work on DataTables 3, but I'm not yet sure if it will!
Allan