Fixed Header with Fixed Column

Fixed Header with Fixed Column

chrislochrislo Posts: 7Questions: 4Answers: 0

Now fixedheader.js has a new plugin. how can i achieve this?
I need a column and the header to be fixed.

Answers

  • aniruddhaaniruddha Posts: 1Questions: 0Answers: 0

    $('#example').DataTable( {
    fixedHeader: true,
    fixedColumns: true
    } );

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    No sorry. As you'll be able to see in the compatibility chart the FixedHeader and FixedColumns plug-ins cannot currently be used at the same time.

    FixedHeader did used to have the ability to fix a column in place, but that was a major performance hit, so it was removed in the latest major release. It is not likely that feature will be added back into FixedHeader, although ultimately both FixedHeader and FixedColumns should work together. I can't say when I'll get time to implement that though I'm afraid.

    Allan

This discussion has been closed.