Datatable column width not right on reload()
Datatable column width not right on reload()
I have a datatable in a datatable and I am having an issue when I reload the inner datatable. When it reloads the column widths are incorrect. However, when I change the window size at all the table recalculates the widths to the correct size. Is there maybe a way to force this recalculation after the reload()? I base the inner datatable off of the outer datatable column widths using: "columnDefs: [
{ width: main.eq(0).width(), targets: 0 },
{ width: main.eq(1).width(), targets: 1 },
{ width: main.eq(2).width(), targets: 2 },
{ width: main.eq(3).width(), targets: 3 },
{ width: main.eq(4).width(), targets: 4 },
{ width: main.eq(5).width(), targets: 5 },
{ width: main.eq(6).width(), targets: 6 },
{ width: main.eq(7).width(), targets: 7 },
{ width: main.eq(8).width(), targets: 8 },
{ width: main.eq(9).width(), targets: 9 }
]"