1 var winUpload = new Ext.Window({ 2 title: '导入excel文件', 3 400, 4 height:200, 5 listeners: { 6 close: function () { 7 store.load(); 8 grid.getView().refresh(); 9 } 10 }, 11 minWidth: 300, 12 closeAction:'hide' , 13 minHeight: 100, 14 layout: 'fit', 15 plain:true, 16 bodyStyle:'padding:5px;', 17 buttonAlign:'center', 18 items: formUpload, 19 });
Ext创建window窗体,添加监听listeners,当窗体关闭时执行store.load();grid.getView().refresh(); 加载数据源,刷新grid表格。