how to get the totalRecords to display during the pagination

how to get the totalRecords to display during the pagination

trishatrisha Posts: 5Questions: 4Answers: 0
edited September 2014 in Free community support

I'm trying to get my server-side pagination working, however to start with, im facing the issue of not been able to display the totalRecords entires in the 'Showing 1 to 15 of 15 entries' text. im using this to display all the records:

            var resultsTable = tableEl.dataTable( {  
            "aaData": tableData,
            "aoColumns": tableColumns,
            "aaSorting": [[1,'asc']],
           // "bServerSide": true,
             "processing": true,
            "serverSide": true,
            "sAjaxDataProp": "api/1.0/accounts",
            "bProcessing": true,
            "pagingType": "simple_numbers",  
            "bLengthChange": false, 
            "bAutoWidth": false,
            "bScrollCollapse": true,
            "iTotalRecords": 34,
            "iTotalDisplayRecords":15,
            "iDisplayLength": 15
             } );

but it still shows me 'Showing 1 to 15 of 15 entries' instead of 'Showing 1 to 15 of 34 entries'. Any idea what im i missing here?

This discussion has been closed.