Capturing row number selection

Capturing row number selection

donnas70donnas70 Posts: 1Questions: 0Answers: 0
edited March 2013 in DataTables 1.9
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?

Replies

  • yoryor Posts: 3Questions: 0Answers: 0
    Have you check fnRecordsDisplay ?

    [code]
    var oDatatable = $.('#example').Datatable();
    var oSettings = oDatatable.fnSettings();
    alert(oSettings.fnRecordsDisplay());
    [/code]
This discussion has been closed.