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

鸿蒙传说
TA贡献1865条经验 获得超7个赞
//表格1
var 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);
}
});

缥缈止盈
TA贡献2041条经验 获得超4个赞
在你的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);
}
- 3 回答
- 0 关注
- 1469 浏览
添加回答
举报
0/150
提交
取消