Error Fixed Column and oLanguage file

Error Fixed Column and oLanguage file

adrianolopesadrianolopes Posts: 5Questions: 0Answers: 0
edited September 2012 in General
Hi,

An error occurs using Fixed Column and oLanguage.

Anyone know how to fix? tks



var oTable = $('#tbLista').dataTable({
"sScrollX": "100%",
"sScrollXInner": "150%",
"bScrollCollapse": true,
"bPaginate": false,
"iDisplayLength": 15,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"oLanguage": {
"sUrl": "../../../include/jquery/gridPortugues.txt"
},
"sDom": '<"H"Tfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": "/DataTables-1.9.2/DataTables-1.9.2/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
"aButtons": [
"xls",
{
"sExtends": "pdf",
"sPdfOrientation": "landscape"
},
{
"sExtends": "print",
"sButtonText": "Imprimir"
}
]
}
});

new FixedColumns( oTable );

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Try using the FixedColumns 2.5.0.dev nightly from the downloads page ( http://datatables.net/download ) that should fix the issue. The other option is to use fnInitComplete and initialise FixedColumns in that, rather than just after the DataTables initialisation as it currently is.

    The problem is that the sUrl for language loading makes the table asynchronous, since an Ajax call is needed to get the language data.

    Allan
  • adrianolopesadrianolopes Posts: 5Questions: 0Answers: 0
    I used oLanguage without file.

    tks
This discussion has been closed.