我试图将代码从 extjs2 更新到 extjs4,但出现错误并且grid. 我的 Google Chrome 浏览器返回错误Cannot read property 'isTree' of undefined
Ext.define('App.grid.GridPanel', {
extend: 'Ext.grid.GridPanel',
alias: 'widget.gridpanel',
frame: false,
loadMask: true,
stateful: false,
enableColumnHide: false,
showGridHeader: true,
viewConfig: {
stripeRows: true
},
initComponent: function() {
if (!this.showGridHeader) {
this.addClass('grid-no-header');
}
App.grid.GridPanel.superclass.initComponent.apply(this, arguments);
},
getView : function(){
if(!this.view){
this.view = new App.grid.GridView(this.viewConfig);
}
return this.view;
}
});
var grid = new App.grid.GridPanel({
商店:商店,
列:gridColumns,
框架:假,
// autoExpandColumn: 'name',
自动高度:真,
负载掩码:真,
bbar:分页栏,
视图配置:{
条纹行:真的,
滚动偏移:2
}
});
即使我更改App.grid.GridPanel.superclass.initComponent.apply(this, arguments);为this.callParent(this, arguments);我收到相同的错误。请帮忙。