Fixed header is not fixed

Fixed header is not fixed

CountLessQCountLessQ Posts: 33Questions: 9Answers: 0

Hi, I am trying to have fixed header but it is not fixed. Here is a link: http://live.datatables.net/tegosuka/2/edit
I don't know what to try next.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921
    Answer ✓

    If you remove this:

            tfoot {
                display: table-header-group;
            }
    

    then FixedHeader works. See the updated example.

    FixedHeader clones the header in order to work. Seems like your solution of using display: table-header-group; is incompatible with this. Here is an example of using column search inputs with FixedHeader. Maybe you can adapt it to work in your solution.

    Kevin

This discussion has been closed.