Freezing caption when using FixedColumns extension

Freezing caption when using FixedColumns extension

smelchersmelcher Posts: 45Questions: 13Answers: 0

I am using the FixedColumns extension. When I scroll to the right, the caption scrolls off the screen. Is there a way to fix the caption?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Is this a duplicate of your other thread?

    Colin

  • smelchersmelcher Posts: 45Questions: 13Answers: 0

    The other thread is using the same plugins but the question is different. When I scroll the table, I'd like the Caption to remain in place. Earlier versions of Datatables seemed to do this.

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Here is a little test case showing that issue.

    The problem is that we've changed how the fixed columns work to use position: sticky. So now the caption really is scrolling with the rest of the table as it would if the whole table was scrolling.

    The only way to work around at that the moment would be to use a div outside of the table. I don't think there is a way to make a caption sticky as well. Sorry.

    Allan

  • smelchersmelcher Posts: 45Questions: 13Answers: 0

    No problem. I appreciate the response.

Sign In or Register to comment.