RowGroup's header fixed on top with fixedHeader (almost there)

RowGroup's header fixed on top with fixedHeader (almost there)

span zspan z Posts: 4Questions: 2Answers: 0

Link to test case: https://live.datatables.net/qabitoyo/1/edit
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: Does any1 knows how to solve it please? Scroll down works perfect but when you scroll up you will notice it's not perfect at all

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    If I understand correctly, the problem isn't with FixedHeader itself, but rather with the custom code being used to try and fix the grouping row. Is that correct?

    That isn't something that I've tried before myself, but I fear that the solution might be a fair bit more complicated that what is being used there. FixedHeader for example does it by creating a temporary table for the floating header, and moving the header row into there. Then it clones the header and puts that back into the main table, so that it doesn't effect the layout of the rest of the page.

    Position sticky and fixed I've never gotten to play with this type of manipulation unfortunately.

    Sorry I don't have a simple solution for you. You might want to take a look at the FixedHeader code if you want to down this route to understand what it is doing though.

    Allan

  • span zspan z Posts: 4Questions: 2Answers: 0

    Thanks for your quickly response, maybe i got a solution, take a look, changed fixed to sticky to keep your styling

    https://live.datatables.net/qabitoyo/2/edit

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    That does appear to work (Firefox / Linux). I like it a lot! Nice one.

    Allan

Sign In or Register to comment.