PDA

View Full Version : [UNKNOWN][3.1] TreeNode.ownerTree should be a tree



Tom23
31 Dec 2009, 3:16 AM
Ext.tree.AsyncTreeNode.expand assumes that getOwnerTree() returns a TreePanel. This does work in a TreePanel because Ext.tree.TreePanel.setRootNode(node) sets node.ownerTree = this, where this is the TreePanel.
In Ext.data.Tree.setRootNode(node) however, we have node.ownerTree = this where this is the Tree.

Is this a bug? I don't know. But it's practically impossible to use an Ext.data.Tree without a TreePanel. IMHO, a Tree should be a mere data structure without the need for a panel.