Count TotalRecordsDisplay

Count TotalRecordsDisplay

jalborresjalborres Posts: 5Questions: 0Answers: 0
edited May 2013 in General
How can i count the iTotalRecordsDisplay in jquery. I am using fnserverparam

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    This plug-in will give you that information: http://datatables.net/plug-ins/api#fnPagingInfo

    Allan
  • jalborresjalborres Posts: 5Questions: 0Answers: 0
    Thank you sir for the fast response... i found dataTableName.fnSettings()._iRecordsTotal; in getting iTotalRecords is there something like that for the iTotalDisplayRecords. I am new in the datatable. I will study the link that you give sir. and Sorry for bad english.

    Your Datatable is Awesome ..
  • jalborresjalborres Posts: 5Questions: 0Answers: 0
    I tried the link that you give and it's working,, :) , but i want to access it outside this

    $('#example').dataTable( {
    "fnDrawCallback": function () {
    alert( 'Now on page'+ this.fnPagingInfo().iPage );
    }
    } );


    example is i want to access it in this
    $( "#btn_gen" ).button().click(function() {

    });
  • jalborresjalborres Posts: 5Questions: 0Answers: 0
    edited May 2013
    i found this
    var oSettings = oTable.fnSettings();

    alert(oSettings.fnRecordsDisplay());

    but the result it gave me was the result of the previous data, and not exactly what the data that been display.

    I hope you understand me ...
  • jalborresjalborres Posts: 5Questions: 0Answers: 0
    Sorry for the post,, I am newbie,, i already solve it and thank you for the link ..,, :) , it help me,,
This discussion has been closed.