Infinite Scroll scrollbar not always appearing

Infinite Scroll scrollbar not always appearing

flarpyflarpy Posts: 47Questions: 0Answers: 0
edited November 2012 in Bug reports
Hi Allan

When using infinite scroll, if the height of the default number of records is not > sScrollY no vertical scrollbar appears. Is there a workaround for this?

My config is
[code]
"bProcessing": true,
"bServerSide": false,
"bDeferRender": false,
"sAjaxSource": '<?php echo $this->sourceLink;?>?format=json',
"aoColumnDefs": <?php echo $this->columnDefs;?>,
"bScrollInfinite": true,
"bScrollCollapse": true,
"bAutoWidth": true,
"sScrollY": "800px",
// "sScrollX": "600px",
"bStateSave": false,
"oLanguage": {
"sProcessing": "Downloading & Sorting Programs"
},

[/code]

Thanks

Replies

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    Unfortunately not at this time. You need to set iDisplayLength to something like 100 to ensure this doesn't happen. The reason for the issue is that the infinite loader only runs on the scroll event, but if there is not scrolling element, there can't be any scrolling! DataTables could overrule the display length you pass in, but that might have been calculated for a reason, so at the moment the 'workaround' is to use something like `iDisplayLength: 100` .

    Allan
  • flarpyflarpy Posts: 47Questions: 0Answers: 0
    That works fine, thanks.
This discussion has been closed.