Ordering issue with column

Ordering issue with column

EA13EA13 Posts: 1Questions: 1Answers: 0

Just wondering if any one can help with this...

The order arrow is missing from the first row and whenever I order one of the other rows it orders the row to the left instead

Here is a screenshot:

https://ibb.co/DMLCRr3

And my code:

var dataRecords = $('#recordListing').DataTable({
    "lengthChange": true,
    "processing":true,
    "serverSide":true,
    "ordering": true,   
    'serverMethod': 'post',     
    "order":[],
    "ajax":{
        url:"ajax_action.php",
        type:"POST",
        data:{action:'listRecords'},
        dataType:"json"
    },
    "columnDefs":[
        {
        },
    ],
    "pcarLength": 10

}); 

Answers

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin

    I can't debug a screenshot I'm afraid, but you are using sever-side processing, so the first question is, does ajax_action.php implement DataTables' server-side processing?

    Next question is: do you really need server-side processing? How many rows are you working with?

    Allan

Sign In or Register to comment.