update table and lost page number
update table and lost page number
magicscreenshot@gmail.com
Posts: 3Questions: 2Answers: 0
I have the following code:
table.clear().draw();
table.rows.add(data).draw();
which calls every X seconds. But I lose selected page number. How to fix it?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Try this instead:
Don't draw after the clear and use
draw(false)
afterrows.add()
. Thefalse
parameter leaves the table on the current page. Its documented in thedraw()
docs.Kevin