Doubled Header instead of Fixed Header

Doubled Header instead of Fixed Header

rplantikorplantiko Posts: 18Questions: 1Answers: 0
edited August 2013 in FixedHeader
Hi,

when I try to use the Extra "FixedHeader.js" as documented, I do not get a fixed header but a doubled header, see here:

https://docs.google.com/file/d/0B-C44vw27ypxVTg4bDBXd1VGSkU/edit

Any idea what I am missing? Must be something basic, I guess. But I didn't find it out.

The table is in server side processing mode, i.e. the tbody part is filled by server requests, but the thead row is contained in the sent HTML, not filled dynamically.

Thanks and regards,
Rüdiger

Replies

  • mooostimooosti Posts: 1Questions: 0Answers: 0
    i have this problem too,but whit this cod my problem solved easily:
    [code]"sDom": '<"H"Tfrclear">t<"F"ip>'[/code]
    you have to use this like below:
    [code]
    $('#view_result_table').dataTable( {
    "sDom": '<"H"Tfrclear">t<"F"ip>
    });
    /code]
  • rplantikorplantiko Posts: 18Questions: 1Answers: 0
    Thanks, moosti - when I fall back to the FixedHeader, I will give your solution a try. In the meantime, I moved further to FixedColumns.js

    But am having another problem with FixedColumns.js which will be another topic.

    Regards,
    Rüdiger
  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin
    Please link to the page so we can debug it: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • rplantikorplantiko Posts: 18Questions: 1Answers: 0
    I abandoned this approach. Also, it may well be that the problem was in the project's CSS (they are working heavily with "important" CSS specs, concerning height and margin of datatables, thus making an header visible which is supposed to be set to "height:0px" by the plugin.
This discussion has been closed.