PDA

View Full Version : NumberField doesn't working properly in EditGrid??



tookoo
30 May 2007, 2:25 PM
I was just playing around "Editor Grid Example" shipped with Ext Library. When I tried to add blankText/invalidText/maxText/decimalPrecision option(s) to the NumberField, none worked. The only modification I made was as follows:


......
{
header: "Price",
dataIndex: 'price',
width: 70,
align: 'right',
// renderer: 'usMoney',
editor: new Ed(new fm.NumberField({
allowBlank: false,
blankText: "blablabla",
invalidText: "test for invalidtext",
maxText: "test for maxText",
allowNegative: false,
decimalPrecision:5,
maxValue: 20
}))
},
......


Did I miss something here? Thanks.

tookoo
31 May 2007, 2:07 PM
Can somebody give it a try to prove whether I am wrong or not on this?