while reload my page datatable warning msg shows after that not working .how to fix that
while reload my page datatable warning msg shows after that not working .how to fix that
nandhinit
Posts: 2Questions: 1Answers: 0
$(document).ready(function() {
$("body").addClass("loading");
$('#identifierTable').DataTable( {
"fnInitComplete": function() {
$('.dataTables_scroll').find('.dataTables_scrollBody').jScrollPane({
hideFocus: true,
autoReinitialise: true
});
},
"serverSide": true,
"paging": true,
"autoWidth": false,
"lengthMenu":[25,50,100],
"fixedHeader": true,
"scrollY": "70vh",
"scrollX": "80vh",
"scrollCollapse": true ,
"processing": true,
"bRetrieve" :true,
"destroy": true,
"ajax": {
"url": $rootScope.adminUrl+"/admin/getAllActiveIdentifiers",
headers: { 'Authorization': "Bearer " + $rootScope.token }
},
"columns": [
{
data: "id",
"render": function(data, type, row) {
return '<img alt="NF" src="images/id.png" height="20" width="25">'
}
},
{ data: "description" },
{ data: "fields" },
{ data: "propagatory", "render": function ( data, type, row, meta ) {
if(data == true){
return '<input type="checkbox" id="propagatory" checked/>';
}
else{
return '<input type="checkbox" id="propagatory" />';
}
} },
{ data: "account", "render": function ( data, type, row, meta ) {
if(data == true){
return '<input type="checkbox" id="account" checked/>';
}
else{
return '<input type="checkbox" id="account" />';
}
}}
],
"fnInitComplete": function(oSettings, json) {
$("body").removeClass("loading");
}
})
})
This discussion has been closed.