No actual redraw and page change after page()

No actual redraw and page change after page()

pioneerpioneer Posts: 1Questions: 1Answers: 0

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!

Answers

This discussion has been closed.