Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82053

ScrollY position to Top when change page

$
0
0

Hi,
I've st scrollY and when I select 100 rows for page correctly he shows me the scrollbar.

$(document).ready(function() {
    var table = $('#clienti').DataTable( {
        data: dataSet,
        responsive: true,
        "scrollY": scrollY + "px",
        "scrollCollapse": true, 
        "processing": true,         
        columns: [

My problem is when I move scroll for example in the middle and then I change page it keeps scrollbar position while I would like it to be positioned to Top.

I suppose that:

$(document).ready(function() {
    $('#clienti').on( 'page.dt', function () {alert('Do something on scrollbar'); });
} );

moreover if I try to use $.fn.dataTable.FixedHeader and move the scrollbar and change page I create a double header at the beginning of my web page, unless you first place the scrollbar by hand to top before changing page!

Sorry for my english


Viewing all articles
Browse latest Browse all 82053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>