this.grid is undefined Line 49515
原本用2.2.1,一切正常,升级EXT3.3.1版本发现,原来的程序出现了问题,主要是在grid中的复选框,原来单击复选框可以选择或取消,现在一单击就报错“this.grid is undefined”,如果不单击复选框,单击选择行,是可以选择的,Ctrl键功能也正常,可多选和取消。
改用EXT3.2.0也是一切正常,这是何解?
var cm = [
new Ext.grid.RowNumberer(),
new Ext.grid.CheckboxSelectionModel(),
{header:"unitCode", width: 35, dataIndex:"unitCode" },
{header:"unitDesc", width: 80, dataIndex:"unitDesc" },
{header:"langCode", width: 35, dataIndex:"langCode",hidden:true}
]
var sm = new Ext.grid.CheckboxSelectionModel();
this.gridPanel = new Ext.grid.GridPanel({
region:"center",
id: subTabId,
applyTo: subTabId,
ds: ds,
cm: cm,
sm: sm,
viewConfig: {
autoFill : true,
enableRowBody:true,
showPreview:true
},
//columnLines: true,
height:height,
//autoHeight:true,
autoWidth:true,
stripeRows : true,
shim:false,
border:false,
monitorResize:true,
autoScroll: true,
tbar:tbar,
bbar:bbar
});
有没有人遇上过这个问题