live DOM sorting problems when sorting by elements'class

live DOM sorting problems when sorting by elements'class

wangyu0248wangyu0248 Posts: 2Questions: 0Answers: 0
edited August 2012 in General
i hava modefied the sort function like below
$( 'td:eq('+iColumn+') div', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
//aData.push( this.checked==true ? "1" : "0" );
aData.push( ($('#'+this.id).hasClass('on')) ? "1" : "0" );
} );

and my td structure is
... ...
... ...
... ...
//the content is empty but i made the background-color and size this div to 20px*20px
when the row number is less than the pagation number , this works very well!
but when the datatable has more than one page ,the rows with class 'on' always sorted to the bottom
which means they always sorted by one order

==
And when i don't use pagation , this sort function works well, i mean maybe this bug is caused by the pagation ?

Replies

This discussion has been closed.