Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // return dari controller
- //echo json_encode(array( 'iTotalRecords' => $total['result'],
- // 'iTotalDisplayRecords' => $total['result'],
- // 'aaData' => $data,
- // 'sEcho' => $this->input->post('sEcho', true)));
- dt = $('#data_table').DataTable( {
- "bLengthChange": false,
- "bProcessing": true,
- "bServerSide": true,
- "sAjaxSource": "<?php echo site_url("mhs/loadData")?>",
- "sServerMethod": "POST",
- "aoColumns": [
- { "sWidth": "5%", "sClass": "center", "bSortable": false, "bSearchable": false},
- { "sWidth": "25%"},
- { "sWidth": "10%"},
- { "sWidth": "5%", "sClass": "center", "bSortable": false, "bSearchable": false},
- { "sWidth": "10%", "bSortable": false, "bSearchable": false},
- { "sWidth": "10%", "bSortable": false, "bSearchable": false},
- { "sWidth": "18%", "bSortable": false, "bSearchable": false},
- { "sWidth": "8%", "bSortable": false, "bSearchable": false},
- { "sWidth": "9%", "bSortable": false, "bSearchable": false},
- ]
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement