PDA

View Full Version : Column editor format ignored



dingo
4 Feb 2010, 12:28 AM
Hello,

I need a column with german number format. In edit and display mode.
The display format is shown right.

But if one edit the column, one can't use the given format and the min/maxValues were ignored.

Can you help me. please?



function(c) {
c.format = "0.000,00/i";

c.editor = new Ext.form.NumberField();
c.editor.decimalSeparator = ';';
c.editor.maxValue = 10;
c.editor.minValue = 0;

var column = new Ext.grid.NumberColumn(c);

column.renderer = function(value, metaData, record, rowIndex, colIndex, store) {
return Ext.util.Format.number(value, c.format);
};

dingo
7 Feb 2010, 10:47 PM
Nobody can help?