Does DataTables 1.9 support Fixed Headers with Bootstrap 2.0.2

Does DataTables 1.9 support Fixed Headers with Bootstrap 2.0.2

quytennisquytennis Posts: 14Questions: 0Answers: 0
edited March 2012 in FixedHeader
Trying to implement Fixed Headers:
http://datatables.net/extras/fixedheader/

with my Bootstrap 2.0.2 styled table but it doesn't work.

Replies

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    I presume you have a navigation bar at the top of your page? What is happening is that the fixed header is actually locked to the top of the browser window, underneath your nab bar.

    I've just recently committed a change to FixedHeader which allows you to specify an offset for the header - if you grab the nightly FixedHeaders from the download page and use something like this:

    [code]
    new FixedHeader(table, {
    "offsetTop": 40
    });
    [/code]

    And that should do it :-)

    Allan
  • quytennisquytennis Posts: 14Questions: 0Answers: 0
    I removed my navigation using DT 1.9.0 and tried FixedHeader and it still didn't worked.
    I'll try the nightly build later.
  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    A link to the test page that doesn't work would be needed for me to see why it isn't working if the nightly doesn't address this for you.

    Allan
  • eruizeruiz Posts: 4Questions: 0Answers: 0
    Hi Allan,

    I have the same problem, where could I find the nightly build for testing?

    Regards

    Enrique
  • eruizeruiz Posts: 4Questions: 0Answers: 0
    Hi Allan,

    I found it at github. I tested FH v2.0.6 and it worked for me.

    Thanks

    Enrique
  • SKerriganSKerrigan Posts: 9Questions: 0Answers: 0
    edited March 2012
    Please give me a link to the fix. The same problem. Because I have not found this in GitHub
  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    The nightly is on the downloads page: http://datatables.net/download/ and there is also a link to my Github account on that page.

    Allan
  • SKerriganSKerrigan Posts: 9Questions: 0Answers: 0
    Our designer will tell you "Great Russian thank you."
This discussion has been closed.