Jquery Datatable Jquery Table Header Width Not Aligned With Body Width

Table Header Width Not Aligned With Body Width Datatables Forums
Table Header Width Not Aligned With Body Width Datatables Forums

Table Header Width Not Aligned With Body Width Datatables Forums Most likely your table is hidden initially which prevents jquery datatables from calculating column widths. if table is in the collapsible element, you need to adjust headers when collapsible element becomes visible. $($.fn.datatable.tables(true)).datatable() .columns.adjust();. I suspect the problem is that the table in the first accordion is hidden when initialized. you will need to use columns.adjust() to recalculate the column widths when the accordion is displayed.

Jquery Datatable Table Header Width Not Aligned With Body Width
Jquery Datatable Table Header Width Not Aligned With Body Width

Jquery Datatable Table Header Width Not Aligned With Body Width Try adding width="100%" to your table in html. if the table is hidden you may need to use columns.adjust() to recalc the column width after the table becomes visible.

Datatable Jquery Table Header Width Not Aligned With Body Width
Datatable Jquery Table Header Width Not Aligned With Body Width

Datatable Jquery Table Header Width Not Aligned With Body Width

Datatable Jquery Table Header Width Not Aligned With Body Width
Datatable Jquery Table Header Width Not Aligned With Body Width

Datatable Jquery Table Header Width Not Aligned With Body Width