FixedHeader
FixedHeader
I'm trying to add fixedheader feature to my datatable. I added the following statement: new FixedHeader( oTable);
A floating header got created on top of the original header. The header had transparent background with a font and style different from my existing header. It looks very odd when the floating header overlaps on the current header.
Can anyone help with this issue?
Datatable initialization:
oTable = $('#mydataTable').dataTable({
"aaSorting": [ [0,'asc'] ],
"aoColumns" : dataTableColumns,
"oLanguage": {
"sLengthMenu": 'Show '+
'10<\/option>'+
'25<\/option>'+
'50<\/option>'+
'100<\/option>'+
'All<\/option>'+
'<\/select> records'
},
"iDisplayLength": -1,
});
new FixedHeader( oTable);
CSS code:
table.display thead th {
padding: 3px 18px 3px 10px;
border-bottom: 1px solid black;
font-weight: bold;
cursor: pointer;
}
table.display tfoot th {
padding: 3px 10px;
border-top: 1px solid black;
font-weight: bold;
}
table.display tr.heading2 td {
border-bottom: 1px solid #aaa;
}
A floating header got created on top of the original header. The header had transparent background with a font and style different from my existing header. It looks very odd when the floating header overlaps on the current header.
Can anyone help with this issue?
Datatable initialization:
oTable = $('#mydataTable').dataTable({
"aaSorting": [ [0,'asc'] ],
"aoColumns" : dataTableColumns,
"oLanguage": {
"sLengthMenu": 'Show '+
'10<\/option>'+
'25<\/option>'+
'50<\/option>'+
'100<\/option>'+
'All<\/option>'+
'<\/select> records'
},
"iDisplayLength": -1,
});
new FixedHeader( oTable);
CSS code:
table.display thead th {
padding: 3px 18px 3px 10px;
border-bottom: 1px solid black;
font-weight: bold;
cursor: pointer;
}
table.display tfoot th {
padding: 3px 10px;
border-top: 1px solid black;
font-weight: bold;
}
table.display tr.heading2 td {
border-bottom: 1px solid #aaa;
}
This discussion has been closed.
Replies
[code]
.FixedHeader_Cloned th { background-color: white; }
[/code]
It isn't done automatically, because white might not be your background colour.
Allan
$("[id^='abc']").bind('dblclick', function() {
var tmp1 = this.id.substr(0, this.id.lastIndexOf("_"));
var row1 = tmp1.substr(tmp1.lastIndexOf("_") + 1);
editrow(row1);
});