FixedHeader bug
FixedHeader bug
max4ever
Posts: 45Questions: 0Answers: 0
Hello, i have this code
[code]
$(document).ready( function () {
var oTable = $('#visualizzazione').dataTable(
{
"bStateSave": true,
"bJQueryUI": true,
"bDeferRender": true,
"sPaginationType": "full_numbers",
"oLanguage": {
"sUrl": "/lang/dataTables-it_IT.txt"
},
"aoColumns": [
{ "sWidth": "150px", "bSortable": false, "bSearchable" : false },
null,
{ "sWidth": "70px"},
null
],
"fnDrawCallback": function ( oSettings ) {
aggiornaTestoSelectAllCheckbox();
},
"sDom": '<"tablebuttons"T><"clear"><"H"<"select_all_div">lfr>t<"F"ip>',
bAutoWidth:false,
"aLengthMenu": [[ -1], [ <?echo json_encode($this->translate('tutti i risultati'))?>]],
"iDisplayLength" : -1
});
new FixedHeader( oTable );
});
[/code]
I noticed that if i comment "bDeferRender" or "aoColumns" then fixedHeader acts ok,
otherwise it has no icons and is a little not in place(if you have 2 rows col name), once i click it, it sets into place.
I am using FixedHeaders 2.04, Datatables 1.8.2, jQuery 1.6.4 and jQuery-ui 1.8.16
p.s. this textarea(in the forum) resizez automatically so it cuts off a few rows in firefox, quite annoying xD
[code]
$(document).ready( function () {
var oTable = $('#visualizzazione').dataTable(
{
"bStateSave": true,
"bJQueryUI": true,
"bDeferRender": true,
"sPaginationType": "full_numbers",
"oLanguage": {
"sUrl": "/lang/dataTables-it_IT.txt"
},
"aoColumns": [
{ "sWidth": "150px", "bSortable": false, "bSearchable" : false },
null,
{ "sWidth": "70px"},
null
],
"fnDrawCallback": function ( oSettings ) {
aggiornaTestoSelectAllCheckbox();
},
"sDom": '<"tablebuttons"T><"clear"><"H"<"select_all_div">lfr>t<"F"ip>',
bAutoWidth:false,
"aLengthMenu": [[ -1], [ <?echo json_encode($this->translate('tutti i risultati'))?>]],
"iDisplayLength" : -1
});
new FixedHeader( oTable );
});
[/code]
I noticed that if i comment "bDeferRender" or "aoColumns" then fixedHeader acts ok,
otherwise it has no icons and is a little not in place(if you have 2 rows col name), once i click it, it sets into place.
I am using FixedHeaders 2.04, Datatables 1.8.2, jQuery 1.6.4 and jQuery-ui 1.8.16
p.s. this textarea(in the forum) resizez automatically so it cuts off a few rows in firefox, quite annoying xD
This discussion has been closed.