DataTables / FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
http://www.datatables.net/
Other
75 stars 83 forks source link

bDeferRender - out of sync bug #3

Closed flc closed 12 years ago

flc commented 12 years ago

when using the bDeferRender option to dataTable, FixedHeader works out of sync (the cloned thead isn't in sync with the original thead after for example you do a sort on one of the columns).

DataTables commented 12 years ago

I've just tried the following and it seems to work okay:

        $(document).ready( function () {
            var oTable = $('#example').dataTable({bDeferRender:true});
            new FixedHeader( oTable );
        } );

Can you provide a test case showing the error please?

flc commented 12 years ago

wow, you were so quick with the response. :) did you try sorting on one of the columns? thats when the problem starts to occur. if you can't reproduce it, i'll try to demonstrate the problem with a simple example. thx ...

DataTables commented 12 years ago

Heh - you caught me at a good time :-)

It does seem like there is an issue there when sorting - it looks like the header is a step behind for some reason... I shall investigate. Thanks for flagging this up.

flc commented 12 years ago

nice, thanks again for the quick feedback and keep up the great work.

DataTables commented 12 years ago

The fix can be downloaded from the 1.0.7.dev nightly on the DataTable download page or here in Github now.

Thanks for letting me know about this!