View Full Version : TreePanel - this.getOwnerTree() is undefined

17 Jun 2009, 4:36 PM
hi all,

I've hit a wall with this problem and would appreciate your help. I am implementing a TreePanel in 3.0RC2 and trying to render it but receive the following error when i call root.render():

this.getOwnerTree() is undefined
[Break on this error] var loader = this.loader || ...ader || this.getOwnerTree().getLoader();

This is the call from the class which creates a new instance of TravelNavTree:

travelNavTree = new TravelNavTree();
travelPanel.travelNavTree.on('render',function() {

TravelNavTree = Ext.extend(Ext.Panel, {

initComponent:function() {

var config = {
el: 'tree',
id: 'travelNavTree',
loader: new Ext.tree.TreeLoader({dataUrl:'data/TravelNavTree.json'}),
root: new Ext.tree.AsyncTreeNode({
text: 'Travel',
draggable:false, // disable root node dragging
expanded: false

containerScroll: true,
border: false,
rootVisible: false

// apply config
Ext.apply(this, config);
Ext.apply(this.initialConfig, config);

// call parent
TravelNavTree.superclass.initComponent.apply(this, arguments);

} // end initComponent

}); // end extend

Thanks in advance for any ideas on this one.