Ext JS在window弹出窗口中嵌套一个grid,该怎么解决

Ext JS在window弹出窗口中嵌套一个grid,该怎么解决


眼眸繁星
浏览 1388回答 3
3回答

鸿蒙传说

//表格1var grid1 = Ext.create('Ext.grid.Panel',{});//表格2的查询提交事件function search(){Ext.Ajax.request({url: '数据处理页面',success: function(response){var respText = Ext.decode(response.responseText);//重点,表格1重新加载数据,后台输出json格式的查询结果grid1.store.loadData(respText);}});

缥缈止盈

在你的window下面添加initComponent: function() {Ext.apply(this, {layout: 'fit',id:'ChoiseWindow',items: [{xtype: 'grid',store: 'manyToOne.ManyToOneStore',selType: 'checkboxmodel', // 复选框columns: dynamicView.ChoiseList}],buttons: [{text: '确定',action: 'saveChoise'}, {text: '取消',handler: function() {this.up('window').hide();}}]});this.callParent(arguments);} 
打开App,查看更多内容
随时随地看视频慕课网APP