How to use fnStandingRedraw() correctly?

How to use fnStandingRedraw() correctly?

RossoneriRossoneri Posts: 2Questions: 0Answers: 0
edited March 2013 in General
Hi,
I'm trying to add rows to my table and want to keep current position. I have read about the plugin that helps to do it, but I can't make it work.

[code]
table.fnAddData([
"data1",
"data2",
"data3",
"data4",
"data5"
]);
table.fnStandingRedraw();
[/code]

If I understand correctly after I call fnAddData the fnDraw() function is automatically called so my current position gets lost.
What is the right way to use this plugin in such cases?

Replies

  • RossoneriRossoneri Posts: 2Questions: 0Answers: 0
    I've found the solution. Just passed flase to fnAddData as second parameter. Sorry for stupid question :(

    By the way, Allan, is there any options to control scroll jumping since November of 2011 ?

    http://datatables.net/forums/discussion/7496/adding-rows-and-keep-scroller-position/p1
This discussion has been closed.