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
Post a Comment