I trying to update code from extjs2 to extjs4, but I have an error and something wrong with grid
. My Google Chrome browser return error 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({ store: store, columns: gridColumns, frame: false, // autoExpandColumn: 'name', autoHeight: true, loadMask: true, bbar: pagingBar, viewConfig: { stripeRows: true, scrollOffset: 2 } });
Even when I changed App.grid.GridPanel.superclass.initComponent.apply(this, arguments);
to this.callParent(this, arguments);
I received the same error.
Please, help.