【问题标题】:Extjs - Setvalue to numberfield inside comboExtjs - 将值设置为组合内的数字字段
【发布时间】:2013-07-12 03:37:50
【问题描述】:

我有一个像 http://jsfiddle.net/FZfCC/

这样的窗口

我想在组合框 (a1) 的函数中将值(myvalue)设置为字段 a2,例如

            listeners: {
                render: function(combo) {
                     Ext.getCmp('a2').setValue(0); // not working
                }
            }

但这不起作用。我该如何解决这个问题谢谢

【问题讨论】:

    标签: extjs combobox extjs4 extjs4.1


    【解决方案1】:

    在渲染之前使用

                beforeRender: function(combo) {
                     Ext.getCmp('a2').setValue(0);
                }
    

    现在它应该可以工作了。

    【讨论】:

      猜你喜欢
      • 2011-04-29
      • 1970-01-01
      • 1970-01-01
      • 2014-04-14
      • 2012-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-02
      相关资源
      最近更新 更多