想捕捉[color=red]EditorGridPanel[/color]中的某一列的事件,为什么不行?不支持吗?
为什么alert不出来?
[code="java"]
var cm = new Ext.grid.ColumnModel([
rn,//获得行号
{
id: "amount",
header : "数量",
sortable : false,
width : 60,
dataIndex : "amount",
editor: new Ext.form.NumberField({
allowBlank: false,
decimalPrecision: 2,
maxValue:999999999999
}),
listeners:{
'change': function(){
[color=red] alert('kkkk');[/color]
}
}
} ]);
[/code]