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ário",
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')
}