I have a dataTable with infinite scrolling. I want to scroll to a selected row on table refresh
$('#table1').dataTable({
'aaData': data,
'aoColumns': columns,
'bInfiniteScroll': true,
'bColumnCollapse': true,
'sScrollY': '200px'
});
$('#btnScroll').click(function(){
$('.dataTables_scrollBody').scrollTo($('#table1 tbody tr').eq(3), 800);
});
But it does not scroll to the row