tookoo
1 Jun 2007, 6:43 AM
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. All the modifications I made to the examples were 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 anything here? Or it is indeed a bug....
......
{
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 anything here? Or it is indeed a bug....