thousand separator

thousand separator

jspcatjspcat Posts: 9Questions: 0Answers: 0
edited October 2013 in General
Hi

Can you tell me what is wrong in this code

[code]if ($.fn.dataTable) { $('.data-table').dataTable ({ "bJQueryUI": true,"oLanguage": {"sInfoThousands": "."},
"sPaginationType": "full_numbers","bPaginate": false,"bInfo":false,
});
};[/code]

I also tried

[code]
if ($.fn.dataTable) { $('.data-table').dataTable ({ "bJQueryUI": true,
"bPaginate": false,"bInfo":false, "oLanguage": {
"sInfoThousands": "."
}
});
};
[/code]

Thanks

Best regards

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Nothing - your pagination information element should be showing large numbers with a period separator. Is it not? As with all posts, please link to a test case, as noted int eh forum rules.

    Allan
  • jspcatjspcat Posts: 9Questions: 0Answers: 0
    Is not sorting

    It's sorting like that

    A 990.481
    B 99.647
    C 94.745
    D 925
    E 922
    F 9.865
    ...
    M 883
    N 878
    O 86.077

    Thanks

    Best regards
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    sInfoThousands has nothing to do with the sorting though. Is it indicated in the documentation that it is? It shouldn't be!

    If you want to sort non-numeric data as numeric data, you need a sorting plug-in: http://datatables.net/development/sorting .

    Allan
This discussion has been closed.