In datatable, sProcessing text is not loading

In datatable, sProcessing text is not loading

rakeshkumar123rakeshkumar123 Posts: 11Questions: 5Answers: 0
edited June 2020 in Free community support

var data = <?php echo json_encode($data); ?>;
$(document).ready(function() {
$('#datatable').dataTable({
"aaData": data,
"bProcessing": true,    
    "aoColumns": [
                { "data": "submissions_dt" },
                { "data": "pettycash_dt" },
                { "data": "type" },
                { "data": "description" },
                { "data": "voucher_no" },
                { "data": "amount",  className: "right" }
     ],      
    "oLanguage": {
          "sProcessing": "Fetching Data, Please wait..."
        },
    
    order: [[2, 'desc']], 
    "lengthMenu": [[50, 100, -1], [50, 100, "All"]],
    "columnDefs": [ 
    { "orderable": false, "targets": [0,1,2,3,4,5] },   
    {"targets": [ 2 ], "visible": false }
    ]
});
});

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.