Hiding currency formatted values if null / empty

QuestionsHiding currency formatted values if null / empty
Damian asked 7 years ago

Hi there,

I currently have columns setup with the following format:
$col["formatter"] = "currency";
$col["formatoptions"] = array("prefix" => "$",
"suffix" => '',
"thousandsSeparator" => ",",
"decimalSeparator" => ".",
"decimalPlaces" => 0);

But if the value is empty or null, it shows on the grid as 0.00
How can I make it show these as empty instead?

Thanks

1 Answers
Your Answer

4 + 12 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?