Vertical Scroll Problem?

Vertical Scroll Problem?

moe4715moe4715 Posts: 2Questions: 0Answers: 0
edited November 2012 in DataTables 1.8
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
[code]
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();
}
});
[/code]

// this code is not working correctly as described above
[code]
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();
}
});
[/code]

Thank you in advance for your help.

Best Regards,
moe

Replies

  • moe4715moe4715 Posts: 2Questions: 0Answers: 0
    Sorry for the bad formatting. Please note that I added the following options in the last code snippet:

    ....
    "sScrollY": "200px",
    "bPaginate": false,
    ....
This discussion has been closed.