【发布时间】:2013-06-21 02:52:34
【问题描述】:
我在网格面板中有 tbar。我的示例代码如
tbar:[
{
xtype: 'form',
items: [{
xtype: 'filefield',
name: 'filefor',
labelWidth: 50,
allowBlank: false,
buttonConfig: {
text: 'up...'
}
}]
}
,{
text: 'add',
handler:function(){
var form = this.up('form').getForm(); // not working
form.submit({}); // not working
}
}
]
我无法提交表单。我该怎么做,非常感谢:)。
【问题讨论】:
标签: extjs extjs4 extjs4.1 toolbar