Currency Format in Data Grid?

0
Hi – is it possible to format a Decimal field as currency (with dollar sign and comma) in a Data Grid? So far the widgets I’ve seen for formatting currency don’t seem to work in a data grid. Is it also possible to format (in a data grid) a Decimal field to show blank instead of zero?
asked
2 answers
2

For adding the dollar sign, take a look at Simon Black's answer in https://forum.mendix.com/link/questions/8614:

Give your curreny field a unique css class. In your CSS, do the following:

.MyClass :before { content: '$'; left: -5px; }

Change the content property to the type of currency needed

For hiding the zero’s you can use the AppstoreApp CellGridStyler.

answered
0

Thanks … For the grid styler, I’m not familiar with Javascript. I tried to google how I would camouflage zeros to blanks but didn’t get far. Any tips?

answered