I am using "sScrollY": 300 in a table
(So basically http://datatables.net/release-datatables/examples/basic_init/scroll_y.html)
and I am adding data to it clientside using fnAddData. If I have scrolled down a few rows in the table so that the top row is not visible and add a row with fnAddData it scrolls to the top.
If, on that page, you were to scroll down in the table a bit and then run
$('#example').dataTable().fnAddData(['zot','baz','bar','foo','SPROING'])
You'll see the table scroll to the top.
Is there a way to prevent this? Any help would be appreciated.
Cheers,
Ivar
(So basically http://datatables.net/release-datatables/examples/basic_init/scroll_y.html)
and I am adding data to it clientside using fnAddData. If I have scrolled down a few rows in the table so that the top row is not visible and add a row with fnAddData it scrolls to the top.
If, on that page, you were to scroll down in the table a bit and then run
$('#example').dataTable().fnAddData(['zot','baz','bar','foo','SPROING'])
You'll see the table scroll to the top.
Is there a way to prevent this? Any help would be appreciated.
Cheers,
Ivar