How do I access iDisplayLength value
How do I access iDisplayLength value
Hi,
I would like to get the iDisplayLength value when navigating away from a page in order to save the user's last used value in order to use as their default next time a page with a datatable on loads.
Please could someone help me with the syntax for obtaining the iDisplayLength value. So far I have:
$(window).unload(function () {
oTable = $('#tblTasks').dataTable();
var oSettings = oTable.fnSettings();
alert(oSettings.iDisplayStart);
})
Thanks
I would like to get the iDisplayLength value when navigating away from a page in order to save the user's last used value in order to use as their default next time a page with a datatable on loads.
Please could someone help me with the syntax for obtaining the iDisplayLength value. So far I have:
$(window).unload(function () {
oTable = $('#tblTasks').dataTable();
var oSettings = oTable.fnSettings();
alert(oSettings.iDisplayStart);
})
Thanks
This discussion has been closed.
Replies
Something similar with be available built into 1.10.
Allan