How to use fnStandingRedraw() correctly?
How to use fnStandingRedraw() correctly?
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?
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?
This discussion has been closed.
Replies
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