$(document).ready(function(){
var dataTable = $('#example5').DataTable({
scrollX:true,
"sScrollY": "1200px",
"sScrollCollapse": true,
"paging": true,
dom: 'lBfrtip',
scrollX:true,
scrollCollapse: true,
lengthMenu: [[10,25,50,100, -1], [10,25,50,100, "All"]],
buttons: [{
extend: 'excelHtml5', text: 'Download Excel',
exportOptions: {
columns: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42]
}
}],
fixedColumns: {
leftColumns: 3,
rightColumns:1
},
search: false,
language: {
processing: "<img src='"+base_url+"uploads/images/loading-circle.gif'>",
paginate: {
next: '<i class="fa fa-angle-double-right" aria-hidden="true"></i>',
previous: '<i class="fa fa-angle-double-left" aria-hidden="true"></i>'
}
},
"processing":true,
"serverSide":true,
"order":[],
"bStateSave": true,
"ajax":{
url:base_url+'student/ajaxAcademicStudents',
type:"POST"
},
"columnDefs": [
{ "orderable": false,"targets":0},
{ "orderable": false,"targets":1},
{ …
Run Code Online (Sandbox Code Playgroud)