Does not count all rows with fnGetNodes() in pagination
Does not count all rows with fnGetNodes() in pagination
anjibman
Posts: 115Questions: 10Answers: 0
Hi All,
I have following table initialization code
var myTable = $jq11('#myTable').dataTable({
"ajax": someUrl,
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [0, 6, 7] }
],
"columns": [
{
...
},
...
],
// "deferRender": true,
"dom": 'l<"#removeButtonDiv.removeButton">rtip',
"filter": false,
"initComplete": function(settings, json) {
$('#removeButtonDiv').html('<input id="removeButton" type="button" value="Remove" style="float:right; height: 25px;" disabled />');
},
"lengthMenu": [ [20, 40, 60, 80, 100], [20, 40, 60, 80, 100] ],
"language": {
"emptyTable": "No data to list",
"infoFiltered": " "
},
"order": [[4, "desc"]],
"processing": true,
"drawCallback": function( settings ) {
$.each(selected, function(index, value){
$('#'+value).attr("checked", "checked");
});
},
"serverSide": true
//,"sPaginationType": "input"
});
but
alert($(myTable.fnGetNodes()).length);
always shows 20 which is my page size. since I have 5 pages full records. Isn't it suppose to show 100. Let me know if I am missing anything about this api.
Thanks.
This discussion has been closed.