I have a numbercolumn in an editable grid. Here is the definition:
The value of FACTOR1 in the store is 70.00. When the grid is displayed, the value is 70.00. When I edit the cell, the value immediately changes to 70. When I press enter or tab, I get the red triangle in the upper left corner. I have an edit listener on the grid that checks the values to make sure something actually changed. I can confirm that the new value of the cell is 70 instead of 70.00. How do I force the "editor" to either display the trailing 0's or treat 70 as 70.00 so that it does not mark this cell as dirty?
Code:
{ xtype: 'numbercolumn', format: '0.00', align: 'right', header: "<b>Factor (%)</b>", sortable: false, draggable: false, width: 100, dataIndex: 'FACTOR1', editor: { xtype: 'numberfield', hideTrigger: true, keyNavEnabled: false, mouseWheelEnabled: false, decimalPrecision: 2, minValue: '0.00', maxValue: '99.99' }, renderer: applyBox
Comment