fnClearTable adding style="display: table; width: 100px;" to table element
fnClearTable adding style="display: table; width: 100px;" to table element
smorgen
Posts: 1Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies