Fixed header width is not same as body width in IE
Fixed header width is not same as body width in IE
kishore109
Posts: 6Questions: 0Answers: 0
hi,
I used datatables jquery to have fixed header. But in IE, the width of the column headers is not same as width of the column body. Please help me with this.
My code:
[code]
$("#tabs").tabs( {
"show": function(event, ui) {
var oTable = $('div.dataTables_scrollBody>rates', ui.panel).dataTable();
if ( oTable.length > 0 ) {
oTable.fnAdjustColumnSizing();
}
}
} );
$('#rates').dataTable( {
"bPaginate": false,
"sScrollY": "200px",
"bScrollCollapse": true,
"bAutoWidth": false,
"aoColumnDefs": [
{ "sWidth": "40%", "aTargets": [ -1 ] }
],
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
} );
[/code]
I used datatables jquery to have fixed header. But in IE, the width of the column headers is not same as width of the column body. Please help me with this.
My code:
[code]
$("#tabs").tabs( {
"show": function(event, ui) {
var oTable = $('div.dataTables_scrollBody>rates', ui.panel).dataTable();
if ( oTable.length > 0 ) {
oTable.fnAdjustColumnSizing();
}
}
} );
$('#rates').dataTable( {
"bPaginate": false,
"sScrollY": "200px",
"bScrollCollapse": true,
"bAutoWidth": false,
"aoColumnDefs": [
{ "sWidth": "40%", "aTargets": [ -1 ] }
],
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
} );
[/code]
This discussion has been closed.
Replies