Posted 12 September 2017, 9:31 pm EST
Hi Team,
I need to remove the trailing zeros from few of the columns in my grid. Some of them have currency formatting ‘c’ and others have number formatting ‘n’.
I have seen that there is a ‘g’ General (no trailing zeros) format but it will not solve my issue as the comma separation and $ prefix would get lost in the general formatting. There is also a function formatNumber inside globalize class which has this feature but i don’t want to call this method in my itemFormatter for each column.
Can you please help me identify a way to remove trailing zeros by setting up the format of my column such that the comma separation and currency prefix formatting is retained?
Thanks,
Rasika.