Issue with hidden table in a UI Dialog

Issue with hidden table in a UI Dialog

dmartinez01dmartinez01 Posts: 6Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Using DataTables 1.9 (installed in August), we have a Reporting tool that loads the 'original' table in the DOM, and also loads a 'second' table (hidden from view, meant to be shown in a much wider/larger panel or UI dialog than the original table.

When a user clicks a link, the UI dialog box opens, and a much wider version of the table appears (our 'Wide Report'). I have it set to open at 95% of the current screen. The dialog box is resizable and draggable.

If a user enlarges their browser and drags the dialog box even wider than before....the DataTables 'controls' extend all the way, but the columns themselves don't resize....leaving 'white space' to the right.

How do you 'force' DataTables to resize and recalculate the column widths properly?
I have seen references to bAutoWidth=false.... the 'bind' to the window resize function (but this is the dialog box, not the browser window)... and fnAdjustColumnSizing.

Anytime I try to invoke the fnAdjustColumnSizing, I get an error saying:

"Cannot reinitialise DataTable.
To retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy"

Would love some help getting walked thru the appropriate way to resize a table.....(or how to destroy/retrieve/reinitialize before calling resizing function)?
This discussion has been closed.