求救,搞了一天了不知道Ext gridpanel 加载时 会报‘this.proxy为空或不是对象’???
var l_id_win = new Ext.Window({
title : '产品的选择窗口',
id: 'l_id_winnnn',
width : 615,
height : 450,
closable: true,
iconCls: 'identity',
modal : true,
defaults : {
border : false
},
buttonAlign : 'center',
html: '<div style="width:300px; float:left" id="l_gridDiv">' +
'</div><div style="width:130px; float:left" id="l_middleDiv">' +
'</div><div style="width:240px; float:right" id="l_rightDiv"></div>'
});
l_id_win.show();
var sm = new Ext.grid.CheckboxSelectionModel();
var cm = new Ext.grid.ColumnModel([
sm,
{header: "产品编码", width: 80, sortable: true,dataIndex: "aa"},
{header: "产品版本", width: 100, sortable: true,dataIndex: "bb"},
{header: "产品描述", width: 200, sortable: true,dataIndex: "cc"},
{header: "产品型号", width: 200, sortable: true,dataIndex: "dd"}
]);
cm.defaultSortable = true;
var storedate=[['15010001','1.00','PCS','0'],['15010002','0.00','PCS','0'],['15010003','0.00','PCS','0']];
var l_idDsss = new Ext.data.SimpleStore({
data:storedate,
fields:['aa','bb','cc','dd']
});
var grif= new Ext.grid.GridPanel({
applyTo: 'l_gridDiv',
cm : cm,
sm : sm,
store : l_idDsss
});
l_idDsss.load();
------解决方案--------------------
e,jf