3 回答

TA貢獻1865條經驗 獲得超7個贊
//表格1
var grid1 = Ext.create('Ext.grid.Panel',{});
//表格2的查詢提交事件
function search(){
Ext.Ajax.request({
url: '數(shù)據(jù)處理頁面',
success: function(response){
var respText = Ext.decode(response.responseText);
//重點,表格1重新加載數(shù)據(jù),后臺輸出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 關注
- 1502 瀏覽
添加回答
舉報