Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82117

colReorderResize: moving a column breaks iDataSort/aDataSort

$
0
0
Hi,

first: I am very impressed with dataTables! Thank you very much for this.

Now, if I set up my table to sort column 3 using the data of column 2 it all works fine until I move a column using the ColReorderWithResize.js extension - then the association is lost. Best to be seen on a table where column 3 is empty.

My initialization:
    $('#example').dataTable( {
        "bPaginate": false,
        "bInfo" : false,
        "bAutoWidth" : true,
        "aoColumnDefs" : [
                { "bSearchable": false, "bVisible": true, "aTargets": [ "ID", "STATUS_ID" ] },
                { "iDataSort": [ 1 ], "aTargets": [ 2 ] }
        ],
        "aaSorting": [[2,'desc']],  // initial sorting
        "sDom" : 'Rlrt',
    });

Any ideas for a fix or a workaround?

Thanks, Michael

Viewing all articles
Browse latest Browse all 82117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>