Multiple Datatables visible, only refresh one
Multiple Datatables visible, only refresh one
Hi,
I have 2 divs next to each other (example mainbox and infobox).
The mainbox has a large datatable.
The infobox has bootstrap tabs in them each with its own datatable.
I need to adjust the active datatable in the infobox when the tabs are changed, but
$($.fn.dataTable.tables(true)).DataTable().columns.adjust();
adjusts the table in the mainbox aswell.
I tries this aswell
$.fn.dataTable.tables( {visible: true, api: true} ).columns.adjust();
This gave me an error, but I believe this will give me the same results as the first one, because the table in the mainbox is also visible
So in short, I only need to adjust the table in the active tab in the infobox.
Thanx