FixedHeader makes table header twice

FixedHeader makes table header twice

JohnczeJohncze Posts: 1Questions: 0Answers: 0
edited November 2012 in FixedHeader
Hi,
I still learning with this great tool and I have little problem with FixedHeader addition. I just have default setting, no custom codes.
And looks like (same in IE, Chrome, Firefox): http://i.imgur.com/7oe4C.png

I have read some similar posts here (http://datatables.net/forums/discussion/comment/31085#Comment_31085), but I don't know what exactly I have to change.
Any ideas?
Thank you in advance, Johncze

Replies

  • saeniesaenie Posts: 1Questions: 0Answers: 0
    I more or less have the same problem with FixedHeader. In top of my table I have some fieldsets. All the fieldsets can kind of collapse (a div is set to display:none). When this happens the table is moved upwards but the column header duplicates. One headers stays in place, the other moves with the rest of the elements.
    You can find my example code at http://live.datatables.net/uloyej/3/

    I tried with removing and adding the fixedheader.
    [code]
    $('.fixedHeader').remove();
    var oTable= $("table#offertelijst").dataTable({ "bRetrieve": true });
    var oFH = new FixedHeader(oTable, { "top": true, "bottom": true });
    [/code]

    but i don't think this works. You'll have to refresh the fixed header in some kind of way
This discussion has been closed.