sorting

sorting

mephjlmephjl Posts: 4Questions: 0Answers: 0
edited December 2012 in DataTables 1.9
I all,

I'm a beginner

this is my simple code :

[code]

$(document).ready( function () {
var oTable = $('#tabella5').dataTable( {
"sScrollX": "100%",
"sScrollXInner": "120%",
"bScrollCollapse": true
} );
new FixedColumns( oTable, {
"iLeftColumns": 2,
"iLeftWidth": 250
} );
} );

[/code]

it sorting well when table not contains tags, for example like this :

[code]


<?php echo number_format($var1,2);?>
<?php echo number_format($var2,2);?>
.....
.....


[/code]

vars are percentuals.

but it don't sort columns when I add any HTML tags in TD tags like this :

[code]

<?php echo number_format($var1,2);?>
<?php echo number_format($var2,2);?>
.....
.....


[/code]

Can anyone tell me why ? Plesa Help me

TNX ALL

Replies

  • mephjlmephjl Posts: 4Questions: 0Answers: 0
    ok, I'll change script, thanks to all
  • allanallan Posts: 63,389Questions: 1Answers: 10,450 Site admin
    A bug in DataTables 1.9.4 :-(. Fixed in the git repo if you want to check that out, or use 1.9.3 which doesn't suffer from the issue.

    Allan
  • mephjlmephjl Posts: 4Questions: 0Answers: 0
    edited December 2012
    I changed 1.9.4 with 1.9.3 but the problem persists
This discussion has been closed.