Globally set the thousand and decimal separator

Globally set the thousand and decimal separator

zexxarzexxar Posts: 9Questions: 4Answers: 0

Hello,

I wanted to ask if it is possible to set ',' as the global default decimal separator so that I don't always have to use the Number helper $.fn.dataTable.render.number( '.', ',' ) as renderer for my columns. Because I'm getting the data as JSON and there the numbers come with a '.' as separator but I always want to display them with a ','.

Thanks in advance

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,236Questions: 1Answers: 2,598
    Answer ✓

    Hi @zexxar ,

    You'll need to use that renderer, as in this example here, as you're changing the format of the text.

    Cheers,

    Colin

  • zexxarzexxar Posts: 9Questions: 4Answers: 0

    Okay thanks for the answer that's how I'm already doing it but I hoped that maybe there is a way to for every number column.

This discussion has been closed.