iDisplayStart not work in datatable 1.9.2
iDisplayStart not work in datatable 1.9.2
roychen
Posts: 5Questions: 0Answers: 0
Hi All,
I have just found out the iDisplayStart not work in datatable 1.9.2, does anyone konw why and how to fix it, thanks
here is my code:
oTable = $('#tableDocument').dataTable({
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
if (iDisplayIndex == 10) {
$('td', nRow).attr('nowrap','nowrap');
}
return nRow;
},
"bJQueryUI": false,
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"aaSorting": [],
"bLengthChange": true,
"iDisplayStart":10,
"aoColumns": [
{"bVisible": false},
{"bSortable":false,"sWidth":"3%"},
{"sClass": "center","bSortable":false,"sWidth":"3%"},
null,
{"sWidth": "10%"},
null,
{"sType": "date"},
null,
null,
{"sWidth":"60px"},
null,
{ "bSortable":false, "sWidth":"110px"}
],
"oLanguage": {
"sLengthMenu": "Display _MENU_ records per page",
"sZeroRecords": "No matching results",
"sSearch":"Find",
"sInfo": "Showing _START_ to _END_ of _TOTAL_ records",
"sInfoEmpty": "Showing 0 to 0 of 0 records",
"sInfoFiltered": "(Total _MAX_ records)",
"oPaginate": {
"sFirst": "First",
"sLast": "Last",
"sPrevious": "Previous",
"sNext": "Next"
}
},
"fnDrawCallback":fnOpenClose
});
});
I have just found out the iDisplayStart not work in datatable 1.9.2, does anyone konw why and how to fix it, thanks
here is my code:
oTable = $('#tableDocument').dataTable({
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
if (iDisplayIndex == 10) {
$('td', nRow).attr('nowrap','nowrap');
}
return nRow;
},
"bJQueryUI": false,
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"aaSorting": [],
"bLengthChange": true,
"iDisplayStart":10,
"aoColumns": [
{"bVisible": false},
{"bSortable":false,"sWidth":"3%"},
{"sClass": "center","bSortable":false,"sWidth":"3%"},
null,
{"sWidth": "10%"},
null,
{"sType": "date"},
null,
null,
{"sWidth":"60px"},
null,
{ "bSortable":false, "sWidth":"110px"}
],
"oLanguage": {
"sLengthMenu": "Display _MENU_ records per page",
"sZeroRecords": "No matching results",
"sSearch":"Find",
"sInfo": "Showing _START_ to _END_ of _TOTAL_ records",
"sInfoEmpty": "Showing 0 to 0 of 0 records",
"sInfoFiltered": "(Total _MAX_ records)",
"oPaginate": {
"sFirst": "First",
"sLast": "Last",
"sPrevious": "Previous",
"sNext": "Next"
}
},
"fnDrawCallback":fnOpenClose
});
});
This discussion has been closed.
Replies
oTable.fnFilter("test");
anybody can tell me why? and how to fixed it
Allan