change decimal separator

Questionschange decimal separator
George asked 6 years ago

How can i change decimal separator from dot to comma?So from 5.321 will show in grid as 5,321.

1 Answers
Abu Ghufran answered 6 years ago

Please see docs.

$col["formatter"] = "number";
$col["formatoptions"] = array("thousandsSeparator" => ",",
"decimalSeparator" => ".",
"decimalPlaces" => 2);

Your Answer

16 + 13 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!