I have a number type column for which I have provided locale based formatting but when I edit that column it shows NaN for some locales (like Swedish, Finnish etc) when there is some negative value in that column (like -1200.58) and also it doesn't allow to enter '-' So I cannot enter negative amount in number type columns whereas it works fine for locale 'en-US'.
I have config similiar to given below:
{
type : 'number',
field : 'score',
text : 'NumberColumn',
format: new NumberFormat({
locale: 'sv-SE',
fraction: [0,2],
}),
renderer: ({ value, cellElement, column }) => {
cellElement.style.backgroundColor = '#faffbd';
return column.format.format(value);
},
}
Any ideas what I'm doing wrong?
Thanks
Vandana Ojha