Infinite scroll fnDraw

Infinite scroll fnDraw

markomarko Posts: 2Questions: 0Answers: 0
edited September 2011 in General
I have a datatable with server side processing and infinite scroll. I need to change the height of the table, so i tried the following:
[code]
myDataTable.fnSettings().oScroll.sY = "300px";
myDataTable.fnDraw(false);
[/code]
The problem with this is that i get duplicated records. Every time i call this the original recods of the table are appended. What am i doing wrong?

Replies

  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    Remove the false from fnDraw I think. When calling it with false, it won't do a full redraw, which you probably don't want with infinite scrolling. This might be a but in DataTables that you are allowed to do this actually - I've made a note to look at it closer!

    Regards,
    Allan
This discussion has been closed.