datatable pagination
datatable pagination
i am trying to use datatable and it is partially successfull. but pagination is not working. its showing 1 to 10 of 10 entries (filtered from 22,289 total entries). the json output has all the 22,289 entries.
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": "true",
"bServerSide": "true",
"bPaginate": "true",
"iDisplayLength": 10,
"sPaginationType": "full_numbers",
"sAjaxSource": "fac_branchassetdetails.php",
} );
} );
[/code]
what else should be done to make pagination work
the json output is given below
{"sEcho":0,"iTotalRecords":"22289","iTotalDisplayRecords":"22289","aaData":[["301","1","40353",....]]}
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": "true",
"bServerSide": "true",
"bPaginate": "true",
"iDisplayLength": 10,
"sPaginationType": "full_numbers",
"sAjaxSource": "fac_branchassetdetails.php",
} );
} );
[/code]
what else should be done to make pagination work
the json output is given below
{"sEcho":0,"iTotalRecords":"22289","iTotalDisplayRecords":"22289","aaData":[["301","1","40353",....]]}
This discussion has been closed.
Replies
Allan