extjs4.1 - Extjs form populating with grid record -


i'm trying grid record data through loadrecord(record). double clicking on record opens new window. want record data displayed in text field of form.

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(); 


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -