Null data column mismatches the sort order and click heading/label

Null data column mismatches the sort order and click heading/label

wyattbikerwyattbiker Posts: 25Questions: 14Answers: 0

When there is a null data column, the following type of code cause a mismatch with the ordering of headings and when you click on the Sort image. Is there a fix for this? Thanks!

        columns: [   
            {data: 'ID','visible':true,"orderable": false, "searchable": false,'visible':true},
            {data: 'DT_RowId', className: "row_num_column","orderable": false, "searchable": false},
            {
                data: null,
                className: "edit_delete_column",
                defaultContent: '<div style="text-align: left">some fixed image goes here</div>',
                "orderable": false, "searchable": false
            },             
            {data: 'Region'},            
            {data: 'Alias'},
        {data: 'Name'}
        ],
        "order": [[3, "desc" ]],  

Answers

  • wyattbikerwyattbiker Posts: 25Questions: 14Answers: 0

    Ok I made a correction to my back end code, it was a combination of using visible column and also null data column. Please close this. Thanks

This discussion has been closed.