0
Datatableに「すべて」レコードを表示しようとすると問題が発生します。 私はこれが私のJSである(パイプラインを除く)の私のDataTableとPipelining機能を使用して:「すべて」の長さのメニューで選択して最後の行がないデータテーブル
var dTable = $('#myTable').DataTable({
"processing": true,
"serverSide": true,
"bSortCellsTop": true,
"autoWidth": false,
"aLengthMenu": [
[25, 50, 100, 500, -1],
[25, 50, 100, 500, "All"]
],
"iDisplayLength": 50,
"order": [[ 10, "asc" ]],
"dom": '<"top"<"dd-area">flp<"button-area">>rt<"bottom"flpi><"clear">',
"ajax": $.fn.dataTable.pipeline({
url: '_handler.php?action='+action+'&cms='+curr_cms
}),
"columns": [
/* columns defined here */
],
"columnDefs": [
{
"targets": ['_all'],
"createdCell": function (td, cellData, rowData, row, col) {
$(td).attr('title', $titles[col]);
}
}
],
"search": "Search:",
"zeroRecords": "No record found",
"fnInitComplete" : function(oSettings, json) {
/* code here */
},
"fnRowCallback": function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {
/* code here */
}
});
、私はShowing 1 to 337 of 338 entries
を取得します。
私はすでにリモートソースをチェックしていますが、すべての338レコードが正しく送信されますが、最後の 'data'配列はフロントエンドテーブルに表示されません。
もし私がbPaginate: false
と設定すると、すべてのエントリが正しく表示されます。