Fixed Column plugin header width not aligne
Fixed Column plugin header width not aligne
Firstly, i want to appreciate this amazing work. Every day i discover more impressive features in datatables. Datatables is a life saver. Great work!
I have a small problem when using Fixed columns. The width of the header cells are not aligning with the width of the body of the fixed columns.
Here is my debug code #ewefuw.
This is the code:
[code]
var reportsTable = $('#reportsTable').dataTable({
"aoColumnDefs": [
{bSortable:false, "aTargets": ['noSort']},
{bSearchable: false , "aTargets": ['noSearch']},
{sSearchable: false , "aTargets": ['noSearch']}
],
"bSortClasses":false,
"bJQueryUI": true,
"iDisplayLength": 5,
"bFilter": true,
"aLengthMenu": [5, 10, 15, 20, 25, 50],
"sScrollX": "100%",
"bScrollCollapse": true,
"bScrollAutoCss": true,
"bAutoWidth":true,
"sPaginationType": "full_numbers",
"sDom": '<"H"<"toolbar">>t<"F"lip>',
"oColVis": {
"buttonText": btnTxt,
"aiExclude": aiExcludeArr
}
});
var oFC = new FixedColumns( reportsTable, {
"iLeftColumns": 4,
"sHeightMatch": "auto"
});
[/code]
Please Help...
I have a small problem when using Fixed columns. The width of the header cells are not aligning with the width of the body of the fixed columns.
Here is my debug code #ewefuw.
This is the code:
[code]
var reportsTable = $('#reportsTable').dataTable({
"aoColumnDefs": [
{bSortable:false, "aTargets": ['noSort']},
{bSearchable: false , "aTargets": ['noSearch']},
{sSearchable: false , "aTargets": ['noSearch']}
],
"bSortClasses":false,
"bJQueryUI": true,
"iDisplayLength": 5,
"bFilter": true,
"aLengthMenu": [5, 10, 15, 20, 25, 50],
"sScrollX": "100%",
"bScrollCollapse": true,
"bScrollAutoCss": true,
"bAutoWidth":true,
"sPaginationType": "full_numbers",
"sDom": '<"H"<"toolbar">>t<"F"lip>',
"oColVis": {
"buttonText": btnTxt,
"aiExclude": aiExcludeArr
}
});
var oFC = new FixedColumns( reportsTable, {
"iLeftColumns": 4,
"sHeightMatch": "auto"
});
[/code]
Please Help...
This discussion has been closed.
Replies
Someone have a solution for this problem?
Thanks!
Marc
I am facing the same problem...can someone please help.
Thanks,
Sid
I'm using DataTables 1.9.4 and FixedColumns 2.0.3.
Can anyone help me please?
Thanks
I've been reading other threads about this problem, but I haven't got the solution.
Allan
Awesome plugin, thank you! But.. also having the same problem - I've posted an example here:
http://live.datatables.net/ulileh/17
All browsers seem to have an issue with the fixed column alignment and IE (up to 9 that I tested) has issues with the non-fixed columns as well.
Here is the test case. http://live.datatables.net/oyujow
Thanks for the help.
Sid