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

scrolling to bttom of table not working

$
0
0

trying to get datatables to scroll to the bottom row.

my code:

        transactions_table.on('draw', function () {
            var num_rows = transactions_table.data().length;
            //transactions_table.scroller.toPosition(num_rows - 1);
            transactions_table.row(num_rows - 1).scrollTo();
        });

I have tried either of the 2 lines toposition() and scrollto() and neither works, the table just stays at the top row.

paging, searching, ordering, info are all set to false.

I have tried replacing the "num_rows-1" with just the number 100, still no scroll.

The num_rows variable does get set to the correct # of rows in the data, so the issue is with the scrolling.

Not sure what I'm missing.

Thanks


Viewing all articles
Browse latest Browse all 82357

Trending Articles



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