ExtJs如何在Window窗口中加载页面上的GridPanel??

ExtJs如何在Window窗口中加载页面上的GridPanel??
我页面上有一个GridPanel了(这里我叫做Grid1),我在Grid1中有个按钮,点击这个按钮弹出一个Window,在这个Window中嵌套了一个GridPanel2,在gridPanel2中有一个查询按钮,通过gridPanel2中的条件查询出了Grid1的记录,但是页面上Grid1的数据并没有加载成功??求哪位大虾帮帮忙。
//表格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);
}
});
}
给 查询缓侍 按枝敬钮 一个事件
这个事件中这样写 store.loadPage(1);/猛哪慎/store假如是GridPanel1的数据源
没看懂你的需求,说详细点
← 上一篇: 下一篇: →