colReorderResize: moving a column breaks iDataSort/aDataSort

colReorderResize: moving a column breaks iDataSort/aDataSort

MiBMiB Posts: 15Questions: 0Answers: 0
edited February 2013 in Bug reports
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:
[code]
$('#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',
});
[/code]

Any ideas for a fix or a workaround?

Thanks, Michael

Replies

  • allanallan Posts: 61,060Questions: 1Answers: 9,956 Site admin
    I think ColReorderWithResize is out of data now. There are a number of bugs in it. It isn't supported as part of the DataTables project, but if anyone wants to bring it into sync with the current development version of ColReorder, I'll be happy to host it on this site.

    Allan
  • MiBMiB Posts: 15Questions: 0Answers: 0
    Ok, I will have a look and see if I am able to fix it. Is there a git repository for the current ColReorderWithResize.js or do we just have the file as it is?
  • allanallan Posts: 61,060Questions: 1Answers: 9,956 Site admin
    I don't think there is. As I say, its not part of the core DataTables project, so its just whoever wants to do some work on it.

    Allan
This discussion has been closed.