DataTables logo DataTables

via Ad Packs
Does DataTables 1.9 support Fixed Headers with Bootstrap 2.0.2
  • quytennisquytennis
    Posts: 14
    Trying to implement Fixed Headers:
    http://datatables.net/extras/fixedheader/

    with my Bootstrap 2.0.2 styled table but it doesn't work.
  • allanallan
    Posts: 15,874
    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:

    	new FixedHeader(table, {
    		"offsetTop": 40
    	});
    

    And that should do it :-)

    Allan
  • quytennisquytennis
    Posts: 14
    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: 15,874
    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: 4
    Hi Allan,

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

    Regards

    Enrique
  • eruizeruiz
    Posts: 4
    Hi Allan,

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

    Thanks

    Enrique
  • Please give me a link to the fix. The same problem. Because I have not found this in GitHub
  • allanallan
    Posts: 15,874
    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
  • Our designer will tell you "Great Russian thank you."
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion