Scrolling state saving for old datatables and scroller.js

Scrolling state saving for old datatables and scroller.js

mav1mav1 Posts: 3Questions: 2Answers: 0

Hello. I use Scroller 1.3.0 and DataTables 1.10.0-beta.2.

I have the same problem, that is described here - https://datatables.net/forums/discussion/10866/state-saving-is-working-but-saving-scroll-position-doesnt-work

So, the position of scroller is not saved.

Here are my initialization parameters:

_"bSortClasses": true,
"bStateSave": true,
"bProcessing": true,
"bPaginate": false,

"sScrollY": "300px",
"bDeferRender": true,
"orderCellsTop": true,
"scrollX": false,
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
"sPaginationType": "full_numbers",
"aaSorting": [[ 2, "asc" ]],
"iDisplayLength": 10,
"bJQueryUI": true,
"sDom": '<"H"frlT>tS<"F"ip>',_

I'v read this - "Scroll position is not currently a parameter that is state saved. Possibly it should be - I'll review this in future versions. Until then you can use fnStateSaveParams and fnStateLoadParams / fnInitComplete to add an extra parameter (the scroll position) to the state saving, read it back and then alter the scrolling position."

Can you tell me how to make scroll position saving with this?

Thanks

This discussion has been closed.