0
votes

I am using Extjs 4.2.1 with RowEditing plugin. I need to change the decimal separator from "." for ",". I used this code in the render event Viewport

 Ext.util.Format.thousandSeparator = '.'; 
 Ext.util.Format.decimalSeparator = ',';

Still in the grid to edit the column with the decimal separator NumberField editor continues with "." instead of the ",".

How to change decimal separator in RowEditing plugin? I thought something like this link Decimal precision in an EXTJS grid

Follow the column definition:

           {
            text : "Valor unit&aacuterio",
            dataIndex : 'valorUnitario',
            flex : 1,
            align : 'right',
            menuDisabled : true,
            editor : {
                xtype : 'numberfield',
                allowBlank : false,
                minValue : 0,
                forcePrecision : true,
                decimalSeperator : ','
            },
            renderer : Ext.util.Format.numberRenderer('0.000,00')
           }
1
You have typo in your numberfield config. The config property is decimalSeparator not decimalSeperator docs.sencha.com/extjs/4.2.2/#!/api/…Akatum
Thank you Akatum, it was a typo, sorry my mistake. Now is working perfectlyVander

1 Answers

-1
votes

it was a typo, sorry my mistake. Now is working perfectly