Adding rows at the top of the table without scrolling back to the top (while using infinite scroll)
Adding rows at the top of the table without scrolling back to the top (while using infinite scroll)
MitchCapper
Posts: 3Questions: 0Answers: 0
First of all this is a great tool! I have a table that periodically gets new data that I am using fnAddData to add to the table. The data always comes in the right order from the server but as fnAddData can only add to the bottom I enabled the sorting which solved the issue of getting the records properly to the top. The problem I run into now is every time I add new data the scrolling is reset. I tried to read all the documentation I could on how best to add data without losing the scroll position and the best I found was:
fnAddData(data,false);
fnStandingRedraw();
but that doesn't seem to work for infinite scrolling tables. Am I doing something wrong/missing something or is this something just not easily done with DT.
fnAddData(data,false);
fnStandingRedraw();
but that doesn't seem to work for infinite scrolling tables. Am I doing something wrong/missing something or is this something just not easily done with DT.
This discussion has been closed.