No actual redraw and page change after page()
No actual redraw and page change after page()

Hi!
I want to do manual page change, so thus I used .page() method, and seems it has no effect. Actually I do something like this:
table.page()
> 0
table.page(2).draw()
> [] // no effect, but AJAX request is performed with start: 0 and length: 15, so, with non-changed pagination parameters
table.page()
> 0
However, if I do the same with sorting, i.e.
table.order([0, "asc"]).draw()
, I get actual redraw in this case.
My DataTables version is 1.10.8.
Am I doing something wrong? I tried to debug DataTables code, but it still requires a bit of digging and any help is welcome!
Thanks!
This discussion has been closed.
Answers
Check the docs.
https://datatables.net/reference/api/page%28%29
Your use of draw() requires a parameter.