Simple fixed header example not working...why?

Simple fixed header example not working...why?

azfrankazfrank Posts: 6Questions: 2Answers: 0

hi to all,
In our company we use IE9 (Standard browser for Intranet)

I just tried to implement the basic example for fixed header.
On the datatable website it's working as expected.

But when I try to use it in my html page, it doesn't.
here's my fiddle
I expected the table header to "stop" when reaching the top of my id "contentMain".
Even if I set the top of "contentMain" to 0, it does not work.

Can anyone help me please to find my mistake?

thank you very much,
azfrank

This question has an accepted answers - jump to answer

Answers

  • azfrankazfrank Posts: 6Questions: 2Answers: 0
    edited January 2017

    Ok, I guess I got it. I think, it's because of the scrolling container around my datatable.

    I just took a new css approach , here's my working fiddle

    I just tested it with my android mobile (Firefox browser): works also

  • allanallan Posts: 61,824Questions: 1Answers: 10,131 Site admin
    Answer ✓

    Yes - FixedHeader doesn't work inside a scrolling container I'm sorry to say. That's a feature I hope to add in future.

    Allan

This discussion has been closed.