Dynamic table with FixedColumns Issue
Dynamic table with FixedColumns Issue
jnorris
Posts: 25Questions: 0Answers: 0
I'm trying to dynamically re-create a table that uses the FixedColumns extra. Basically, I'm calling fnDestroy() on the datatable object, replacing the table html in the DOM, creating a new datatable object and finally creating a new FixedColumn object. This is causing a webpage error at line 566 in the fixedColumn javascript file. The width() function on the grid returns 0 so the calculated width ends up being negative. The functionality still seems functional though.
Can anyone point me out to what I should be doing to remove an existing datatable and replace it with a new one? Does fnDestroy() also destroy any other "extras" objects attached to the datatable object? I didn't see any way to directly destroy the fixedcolumn object.
Can anyone point me out to what I should be doing to remove an existing datatable and replace it with a new one? Does fnDestroy() also destroy any other "extras" objects attached to the datatable object? I didn't see any way to directly destroy the fixedcolumn object.
This discussion has been closed.
Replies