Confused Scroller!

Confused Scroller!

hsajjadhsajjad Posts: 28Questions: 0Answers: 0
edited December 2013 in DataTables 1.9
I'm PoCing the Scroller plugin along with data pipelining, as documented and config supplied on the dataTables site/

Issue:

If I quickly drag down my scrollbar I can see the Scroller's page numbers go out of sync e.g.
[quote]
Showing 5,464 to 3,268 of 3,268 entries
[/quote]

At this point the scroller is confused and need reloading. If I scroll gradually, i.e. using the mouse wheel then all seems hunky dori.

Looking to bullet-proof the Scroller from this anomaly. Suggestion welcomed. Thanks!



My Config:
[code]
$(document).ready(function() {
var oTable = $('#table_id').dataTable( {
"bScrollInfinite": true,
"bScrollCollapse": true,
"sScrollY": "500px",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/ismb/api/gui/getMessage",
"aoColumns": [
{ "mData": "busId" },
{ "mData": "sourceSystem" },
{ "mData": "receiveTime" },
{ "mData": "validationStatus" },
{ "mData": "messageId" }
],
"sDom": "rtiS",
"oScroller": {
"loadingIndicator": true
},
"fnServerData": fnDataTablesPipeline,
"bDeferRender": true
} );
} );
[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    > "bScrollInfinite": true,

    That won't work with Scroller. I have no idea what it will do, but it could well result in what you are seeing. Also bScrollInfinite is removed in DataTables 1.10, with Scroller effectively replacing it.

    If it isn't that, can you link us to the page please?

    Allan
  • hsajjadhsajjad Posts: 28Questions: 0Answers: 0
    Cool, "bScrollInfinite": true, was the culprit/

    Somehow I thought this is part of the same Scrolling solution available from DataTables. Appreciat eif you please highlight on the below page that this is deprecating in favour of the Scroller plugin.

    http://www.datatables.net/release-datatables/examples/basic_init/scroll_y_infinite.html

    Many thanks!
This discussion has been closed.