Utzn 2017-01-13 03:31 采纳率: 80%
浏览 1292
已结题

exjts listeners事件combo无响应

extjs 中引用lispanel.js 其中formconfig中的combo的listeners的监听事件无响应,其他的render中on事件都 有响应:下面是代码grid = Ext.create('Ext.frf.list.ListPanel',{
id : 'domainGrid',
title:'岗点路段管理',
entityName : 'gangdian',
singlePanel:true ,
border:true,
region : 'center',
tbConfig : {mode : 'normal'},
bbConfig : {mode : 'normal'},
searchConfig:{
'bmmc': {xtype: 'combo',fieldLabel:'所属大队',data:bm,emptyText: '请选择大队',listeners:{
select:function(combo,record,index){//此处有效果
Ext.getCmp('domainGrid_search_gangdian_ksmc').setValue('');
addKsbh(Ext.getCmp('domainGrid_search_gangdian_bmmc').getValue());
}
}},

                },

                createConfig : {
                   url : '${basePath}gangdian_add.action',
                   autoLoad : true 
                },

                formConfig: {
                    'bmmc':{ xtype: 'combo',fieldLabel:'所属大队',data:bm,emptyText: '请选择大队',selectOnFocus:true,listeners:{
                      select:function(combo,record,index){
                        alert('11');//此处事件不起作用
                       console.log('222');
                       }

                    }},

                    'xy':   { xtype: 'textfield',fieldLabel:'范围',fieldName:'xy', listeners:{
                                render:function(v,record){

                                v.getEl().on('click',function(v){

                                 alert('aaa');//此处有效果

                                    });
                                    }
                                }},

                    'bz':{ xtype: 'textfield',fieldLabel:'描述',fieldName:'bz'},
                    'UUID':{ xtype: 'textfield',fieldLabel:'UUID',fieldName:'UUID',hidden: true}
                },
                properties : [

                    {name : 'xy',text : '坐标',width : 220,align : 'left',    renderer:function(v, metaData, record, rowIndex, colIndex, store, view){
                        if(v!=null||metaData!=null){
                        var str = "<a href='#' onclick=function1('"+v+"');>"+v+"</a>";
                       return str;
                    }
                }},
                    {name : 'UUID',text : 'UUID',width:150 ,align :'left',hidden: true}

                ]
            });
  • 写回答

4条回答 默认 最新

  • Go 旅城通票 2017-01-13 06:53
    关注

    Ext.frf.list.ListPanel是自己写的插件吧,原生extjs没有这个插件,自己看下api说明或者源代码

    评论

报告相同问题?

悬赏问题

  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败