wallynm
10 Jan 2012, 9:45 PM
Hello for everyone... I'm having some headcaches with trepanels, but finally i almost done with my problems, now i'm needing help on this:
When i try to isnsert a node into an treepanel, the node it's inserted correctly, actually i'm using this code to insert a node to the tree:
var rec = {
nome : 'teste' ,leaf : true
}
var treeGridAppend = this.gridCmp.getRootNode().findChild(property, val, true);
var appended = treeGridAppend.appendChild(rec);
Everything it's fine untill here, when this code runs the node it's appended to the tree, BUT i'm with problems when i try to insert a node into a LEAF node... when the node is inserted into an leaf, it remains as a leaf and the new child element isn't appear...
There's a way to change the Leaf property to false?
Or maybe some type of doLayout function?
When i try to isnsert a node into an treepanel, the node it's inserted correctly, actually i'm using this code to insert a node to the tree:
var rec = {
nome : 'teste' ,leaf : true
}
var treeGridAppend = this.gridCmp.getRootNode().findChild(property, val, true);
var appended = treeGridAppend.appendChild(rec);
Everything it's fine untill here, when this code runs the node it's appended to the tree, BUT i'm with problems when i try to insert a node into a LEAF node... when the node is inserted into an leaf, it remains as a leaf and the new child element isn't appear...
There's a way to change the Leaf property to false?
Or maybe some type of doLayout function?