[King.yue]Ext.JS 弹出窗体取值赋值

时间:2014-05-05 11:36:05   收藏:0   阅读:392

//从Grid取值
var name = Ext.getCmp(gridGridID).getView().getSelectionModel().getSelection()[0].data.Name;
var code = Ext.getCmp(gridGridID).getView().getSelectionModel().getSelection()[0].data.Code;
//赋值ID
Ext.getCmp(‘@V.ID_TXT_NAME‘).setValue(name);//不用刷新Form
Ext.getCmp(‘@V.ID_TXT_CODE‘).setValue(code);
//关闭窗体
Ext.getCmp(windowsID).close();

[King.yue]Ext.JS 弹出窗体取值赋值,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!