Get current page
Get current page
Is there a way to get the current page?
I'm trying to update the pipelining cache when I'm using jeditable but the problem is that I only have a row and column index for the current page I'm on. So, if I'm on page two, I need to reference the correct index in the pipelining cache (i.e. page * row), otherwise it will always just update the first page in the cache.
Thanks!
I'm trying to update the pipelining cache when I'm using jeditable but the problem is that I only have a row and column index for the current page I'm on. So, if I'm on page two, I need to reference the correct index in the pipelining cache (i.e. page * row), otherwise it will always just update the first page in the cache.
Thanks!
This discussion has been closed.
Replies
var page = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
Sorry!
[code]
var oTable = $('#tableDetails').dataTable();
var oSettings = oTable.fnSettings();
oSettings._iDisplayStart = 11; //for example is 3rd page if page size is 5
oTable.fnDraw(true);
[/code]