I don't know if this is a bug, but when I try to use scrolling in the following example, I get no data showing up at the first time and data but a never ending load dialogue on the second call. My code looks as follows:
// this code works fine
// this code is not working correctly as described above
Thank you in advance for your help.
Best Regards,
moe
// this code works fine
oTable = $('#datatable').dataTable({ "bProcessing":true, "bServerSide":false, "sAjaxSource":"/reprocessing/show", "bDestroy": true, "bFilter": false, "fnServerParams": function ( aoData ) { aoData.push( { "name": "some_name", "value": "some_value" } ); }, "sDom":"frtlip", "oLanguage":{ "sUrl":"/languages/" + language.toLowerCase() + "_datatable.csv" }, "iDisplayLength" : -1, "fnDrawCallback": function () { if(this.fnSettings().fnRecordsTotal() > 0) $('#bottom_options').show(); else $('#bottom_options').hide(); $('#datatable_length').hide(); $('#datatable_info').hide(); $('#datatable_paginate').hide(); } });
// this code is not working correctly as described above
oTable = $('#datatable').dataTable({ "bProcessing":true, "bServerSide":false, "sAjaxSource":"/reprocessing/show", "bDestroy": true, "bFilter": false, "fnServerParams": function ( aoData ) { aoData.push( { "name": "some_name", "value": "some_value" } ); }, "sDom":"frtlip", "oLanguage":{ "sUrl":"/languages/" + language.toLowerCase() + "_datatable.csv" }, "iDisplayLength" : -1, "sScrollY": "200px", "bPaginate": false, "fnDrawCallback": function () { if(this.fnSettings().fnRecordsTotal() > 0) $('#bottom_options').show(); else $('#bottom_options').hide(); $('#datatable_length').hide(); $('#datatable_info').hide(); $('#datatable_paginate').hide(); } });
Thank you in advance for your help.
Best Regards,
moe