Header width alignment
Header width alignment
kishore109
Posts: 6Questions: 0Answers: 0
When I use datatables, the header width is not aligned with the body.The width of the column in the header is different when compared to width of the column in the body part. And also the width of the column is taking some default value. I have attached the screenshot.
http://www.picpaste.com/pic22-TbQMlBbD.JPG
[code]
$("#rates").dataTable({
"bPaginate": false,
"sScrollY": "250px",
"bAutoWidth": false,
"bScrollCollapse": true,
"sScrollX": "100%",
"sScrollXInner": "100%",
"bLengthChange": false,
"bFilter": false,
"sDom": '<"top">rt<"bottom"flp><"clear">',
"aoColumns": [
{ "bSortable": false},
{ "bSortable": true},
{ "bSortable": true},
{ "bSortable": true},
{ "bSortable": true}
]
}).fnAdjustColumnSizing( false );
[/code]
My table :
[code]
http://www.picpaste.com/pic22-TbQMlBbD.JPG
[code]
$("#rates").dataTable({
"bPaginate": false,
"sScrollY": "250px",
"bAutoWidth": false,
"bScrollCollapse": true,
"sScrollX": "100%",
"sScrollXInner": "100%",
"bLengthChange": false,
"bFilter": false,
"sDom": '<"top">rt<"bottom"flp><"clear">',
"aoColumns": [
{ "bSortable": false},
{ "bSortable": true},
{ "bSortable": true},
{ "bSortable": true},
{ "bSortable": true}
]
}).fnAdjustColumnSizing( false );
[/code]
My table :
[code]
This discussion has been closed.