Capturing row number selection
Capturing row number selection
donnas70
Posts: 1Questions: 0Answers: 0
I am trying to save the user's row number selection in the session. I have figured out that setting the "iDisplayLength" will allow me to set the row number when loading the data table. But how do I capture the user's selection when they change it? Is there an event on changing the row number selection where I can then pull out either the selection from the drop down or the current number of rows displaying?
This discussion has been closed.
Replies
[code]
var oDatatable = $.('#example').Datatable();
var oSettings = oDatatable.fnSettings();
alert(oSettings.fnRecordsDisplay());
[/code]