我正在尝试通过loadRecord(记录)获取网格记录数据。 双击记录将打开一个新窗口。我希望记录数据显示在表单的文本字段中。
var fg1 = Ext.create('Ext.form.Panel', {
title: 'Grid Selection',
hieght: 500,
width: 500,
margin: 20,
xtype: 'container',
layout: 'fit',
items: [{
xtype: 'grid',
itemId: 'grid1',
selType: 'rowmodel',
store: store,
listeners: {
//afterrender: function(win)
//{
handler: function (RowModel, record, index, eOpts) {
var u = this.getRecord();
u.applyToFields(record);
loadRecord(record);
}
},
listeners: {
itemdblclick: function (view, record, htmlItem, index,
eventObject, opts) {
var win = new Ext.Window({
title: 'Entry Information',
id: 'myNewWindow',
rIx: 'rowIndex',
width: 400,
height: 400,
items: [{
xtype: 'form',
layout: 'fit',
itemId: 'combo1',
height: 400,
closable: false,
grow: true,
closeAction: 'hide',
autoHide: true,
bodyPadding: 10,
items: [{}]
});
win.show();