colReorderResize: moving a column breaks iDataSort/aDataSort
colReorderResize: moving a column breaks iDataSort/aDataSort
MiB
Posts: 15Questions: 0Answers: 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:
[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
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
This discussion has been closed.
Replies
Allan
Allan