ExtJS Modal Panel is not displaying content -


i have modal panel appear when link clicked listener config. link placed inside grid. problem when link clicked modal appearing no data. please help.

listeners : {                 click : function() {                     ext.create('ext.data.store', {                         storeid:'mystore',                         fields:['qname'],                         data:{'items':[                             { 'qname': 'lisa'},                             { 'qname': 'bart'},                             { 'qname': 'homer'},                             { 'qname': 'marge'}                         ]},                         proxy: {                             type: 'memory',                             reader: {                                 type: 'json',                                 root: 'items'                             }                         }                     });                          ext.create('ext.window.window', {                             title : 'add survey',                             titlealign : 'center',                             id : 'surveywindow',                             height : 400,                             width : 300,                                                                         //modal : true,                             layout : 'fit',                             closeaction:'close',                             store:ext.data.storemanager.lookup('mystore'),                             items : {                                 xtype : 'grid',                                 id :'addsurveygrid',                                 border : false,                                 columns : [{                                     xtype : 'rownumberer'                                 },{                                     header : 'survey name',                                     sortable : false,                                     dataindex : 'qname',                                     flex : 1                                 }]                             }                         }).show();                 }         } 

you passing store window, not grid. fixed you.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -