datagrid中combobox监听事件

图片说明

               <th data-options="field:'productid',width:100,
                        formatter:function(value,row){
                            return row.productname;
                        },
                        editor:{
                            type:'combobox',
                            options:{
                                valueField:'productid',
                                textField:'productname',
                                method:'get',
                                url:'products.json',
                                onSelect:function(rec){alert(JSON.stringify(rec))},
                                required:true
                            }
                        }">Product</th>
    xtype : 'combobox',
        width : 180 ,
        id :'decimaldigits',
        selValue : '1',
        fieldLabel : '集团本部',
        url : './testdata/unittype.json',
        listeners : {
            change : function(e,newValue){
            //decimaldigits是combobox的ID
                        var point= Ext.getCmp('decimaldigits').getValue();

                if(point == '1'){
                写一个符合自己要求的函数
                }


                }else if(point == '2'){
                    actGrid.resetNumFormate('0.00');
                }
            }
        }