Get total records on fnClick:

Get total records on fnClick:

ShirogaShiroga Posts: 2Questions: 1Answers: 0
edited July 2014 in Free community support

I have this code, i would get the total number of records, how i can do?

tableTools: {
     "sSwfPath": window.STATIC_BASE + cripts/datatable/swf/copy_csv_xls_pdf.swf",
      "aButtons": [ "pdf", "csv",
      "print",
      {   "sExtends": "text",
          "sButtonText": "TotalRecords",
          "fnClick": function () {
           var record_count = this.fnSettings().fnRecordsTotal();
           alert(record_count);
           }
      }
      ]
}
This discussion has been closed.