FixedHeader and FixedColumns

FixedHeader and FixedColumns

lazzylazzy Posts: 21Questions: 8Answers: 0

Hello
how can i do combo FixedHeader thead and FixedColumns (leftcolumm:2)?
i want freeze header and 2 left columns
my setting is like this
{
fixedColumns: true,
fixedHeader: {
header: true,
footer: true
}
}
it works fine with footer but header doesn't work. Is this bug or i have add more config?

This question has accepted answers - jump to:

Answers

  • kthorngrenkthorngren Posts: 20,322Questions: 26Answers: 4,774
    Answer ✓

    The compatibility chart indicates that FixedHeader and FixColumns are not compatible:
    https://datatables.net/download/compatibility

    Kevin

  • lazzylazzy Posts: 21Questions: 8Answers: 0

    But it works fine fo table footer tfoot. i think thead or tfoot is almost the same. can you guide me to fix this bug of i create custom extensions

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin
    Answer ✓

    Its not a bug. As Kevin indicates FixedHeader and FixedColumns cannot be used on the table same. Indeed more generally FixedHeader cannot be used on a scrolling table (scrollX etc) while FixedColumns must be used on a scrolling table.

    Allan

  • lazzylazzy Posts: 21Questions: 8Answers: 0

    thanks for yours answer i think i active only footer
    think i can write another custom scipt to create new table copy and change thead by tfoot from main table. when main table scroll it scroll also new table

This discussion has been closed.