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
You can write your own formatter, instead of default currency:
Line 104, 142
https://gist.github.com/gridphp/b86f17429c67ac7c5166ff7ccb9376d2#file-currency-formatter-blank-php-L104
https://gist.github.com/gridphp/b86f17429c67ac7c5166ff7ccb9376d2#file-currency-formatter-blank-php-L142