fnClearTable adding style="display: table; width: 100px;" to table element

fnClearTable adding style="display: table; width: 100px;" to table element

smorgensmorgen Posts: 1Questions: 0Answers: 0
edited November 2012 in DataTables 1.9
I am not sure why or how hard coded styling (style="display: table; width: 100px;") is getting applied to my table. Any ideas on how to get rid of this?

I at least want to get rid of the width property. Here is my code:

[code]
var oTable = jQuery("#myTable" ).dataTable();
oTable.fnClearTable();

jQuery( "#myTable").dataTable( {
"bFilter": false,
"bDestroy": true,
"sSortAsc": "header headerSortDown",
"sSortDesc": "header headerSortUp",
"sSortable": "header",
"sDom": "<'row-fluid'<'span6'p><'span3'fi><'span3'l>r> t<'row-fluid'<'span6'p><'span3'fi><'span3'l>>",
"sPaginationType": "bootstrap",
"aoColumns": [{ "bSortable": false },
null,
null,
null,
null,
null,
null,
null]
} );
[/code]

Thank you!

-Sarah

Replies

  • jeremyhjeremyh Posts: 6Questions: 0Answers: 0
    I have seen something similar happen when I use fnDestroy() to wipe out the table. When I redraw a table in the same place, it now has the crazy 100px width hardcoded.
This discussion has been closed.