I am manually changing the “iDisplayLength” to a value greater than 10 but the table will only show 10 records at a time. Also the datatable generate function only pulls 10 records from the database. The only way to retrieve more than 10 records from the database I had to change the iLenght value in the get_paging() function.
Is there a way to change that value to get this to work.
$('#wtable').dataTable({
"bPaginate": true,
"bFilter": true,
"bSort": true,
"bAutoWidth": false,
"sDom": '<"top"f>t<"bottom"lip>',
"sAjaxSource": "<?php echo site_url('ajax/controller/get_table_data'); ?>",
"iDisplayLength ": 50,
"aaSorting": [[ 6, "desc" ]],
'aoColumns' : [
{ 'sName': 'entry.publish_status', 'bSortable': false },
{ 'sName': 'entry.entry_id'},
{ 'sName': 'employee_name'},
{ 'sName': 'employee.first_name', 'bVisible': false },
{ 'sName': 'building.building_name'},
{ 'sName': 'entry.observed_by' },
{ 'sName': 'entry.date_submitted' },
{ 'sName': 'functions', 'bSortable': false },
],
});
Thank you in advance.