How to make datatable tfoot responsive?
How to make datatable tfoot responsive?
jaya123
Posts: 1Questions: 1Answers: 0
I have used datatable responsive js, after that tbody is responsive but tfoot colunm hidden
This discussion has been closed.
Answers
I don't quite understand I'm afraid. Where would you expect the
tfoot
cell to be shown?Thanks,
Allan
In case anyone else is looking for the solution to the fact that the table foot isn't responsive (unlike the body)...
The solution I found was to get rid of the table footer and force the row I needed to the bottom by using a fnDrawCallback function. The trick is to use .DataTable().row().invalidate for each row to force the re-rendering of the responsive hidden stuff.
This little example has a footer and it is responsive.
Can you link to a test case showing the issue where it is not please?
Allan
Hi Allan,
For me the problem was that I had the totals in the tfoot block. When resizing the table, the columns hid and there was no way to view the hidden totals for the table footer (no expand icon for the tfoot row).
Oh - I see what you mean. Yes, I can see how that would be an issue. There is no expand option for the footer table in DataTables at the moment.
Allan