Hi,
I have the following custom formatting in a grid:
var markup = '<div style="white-space:normal;">{0} {1}</div>',
price = v,
currency = rec.get('CURRENCY');
return Ext.String.format(markup,price,currency);
and I would like to format the price to show 2 decimals always.
Whats the best way to do this?
I have the following custom formatting in a grid:
var markup = '<div style="white-space:normal;">{0} {1}</div>',
price = v,
currency = rec.get('CURRENCY');
return Ext.String.format(markup,price,currency);
and I would like to format the price to show 2 decimals always.
Whats the best way to do this?
Comment