Datatables footer recalculate

Datatables footer recalculate

jklovancjklovanc Posts: 8Questions: 2Answers: 0

Is there an API call to recalculate the width of the footer columns?
I am having a problem that goes like this;
1. I load a table with a hidden column.
2. I make that hidden column visible.
3. The footers are out of alignment.
4. I hide that column and make it visible again.
5. The footers are aligned correctly.
I am thinking that if I can use the "column-visibility" event to recalculate the footer widths it might work.

I am using scrollX and scrollY.
I am using yadcf to put search terms into the footers.

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    columns.adjust() should realign all columns, including the footer.

    If that doesn't help, we'd need a link to the page showing the issue.

    Allan

This discussion has been closed.