FixedHeaders sticking to parent scrollable container
FixedHeaders sticking to parent scrollable container
I found the following post in the forums from 2018: https://datatables.net/forums/discussion/51368
I'm wondering if anything has been implemented to support this behavior. It seems the default behavior is attached to the window scroll, not that of any parent div. I have a typical 3 pane setup with a header up top, a navigation pane to the left, and a content pane to the right. The content pane is scrollable, the whole page doesn't scroll. I would like to tell DataTables either the parent container and have it attach to scrolling for that element.. or.. not sure what else aside from the (self-described) "hack" from the post pasted above.
Answers
Hi,
At the moment it is still window based. One day I will get around to adding the ability to assign any scrolling container, but haven't yet made it a priority I'm afraid. Sorry.
Perhaps in this case, one option for your header is to use an offset like this example.
Allan