support icon indicating copy to clipboard operation
support copied to clipboard

Error in currency format

Open ghulamghousdev opened this issue 5 months ago • 1 comments

Forum post

Hi!

I tried to test the currency formating in the sample https://www.bryntum.com/products/grid/examples/export/. But when I fill the format in the "Score" field with the template "$0.00", is throwed the error: "Currency code is required with currency style."

The declaration I'm used was:

{ text : 'Score', field : 'score', flex : 1, type : 'number', format: {template: "$0.00"} },

Note:

When using this:

 format : { template: '$0.99', style: 'currency' } 

It works without errors but when removing the style from format, errors are back. The style should be extracted from the currency.

the below should work: { text : 'Score', field : 'score', flex : 1, type : 'number', format : '$0.99' },

ghulamghousdev avatar Sep 18 '24 12:09 ghulamghousdev