【问题标题】:Extjs radio addevent problemExtjs广播添加事件问题
【发布时间】:2009-08-01 00:36:51
【问题描述】:

我在点击事件上添加单选按钮。但不工作。我的代码:

无线电面板:

   RadioPanels = new Ext.Panel({
                    layout: 'table',
                    id: 'newRadioEdit',
                    name: 'newRadioEdit',
                    //title:'Servis Durumu',
                    bodyStyle: Ext.isIE ? 'padding-left:35px;' : 'padding-left:35px;',
                    layoutConfig: {
                        columns: 2
                    },
                    anchor: '100%',
                    defaults: {
                        border: false,
                        layout: 'form',

                        labelWidth: 15,
                        style: {
                            paddingRight: '10px'
                        }
                    }
                });
var radio= new Ext.form.Radio({
        name: 'SERVIS_DURUMU',
        inputValue: '1',
        boxLabel: 'Test',
        style: {
            marginRight: '10px'
        }
    });
    radio.addListener('click',function() {
        alert("yihuuu");
    });
RadioPanels.add(radio);

【问题讨论】:

    标签: javascript event-handling extjs radio-button


    【解决方案1】:

    事件是check而不是click

    radio.addListener('check',function() {
        alert("yihuuu");
    });
    

    【讨论】:

      猜你喜欢
      • 2011-02-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-25
      • 2016-06-12
      • 2017-05-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多