1
我試圖將extjs2的代碼更新爲extjs4,但我有一個錯誤和grid
錯誤。我的谷歌Chrome瀏覽器返回錯誤Cannot read property 'isTree' of undefined
無法讀取未定義Extjs的屬性'isTree'4
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({ store: store, columns: gridColumns, frame: false, // autoExpandColumn: 'name', autoHeight: true, loadMask: true, bbar: pagingBar, viewConfig: { stripeRows: true, scrollOffset: 2 } });
即使當我改變App.grid.GridPanel.superclass.initComponent.apply(this, arguments);
到this.callParent(this, arguments);
我收到了同樣的錯誤。 請幫忙。
在下方有幫助嗎? – dbrin 2013-05-09 20:45:07