PDA

View Full Version : TreePanel root node with 'expanded: true' has no effect



janux31
5 Mar 2010, 4:21 AM
Hi,

My TreePanel have a root node (hidden or not) with expanded: true. It worked fine with Ext 2 but no more with Ext 3.1.1. When I expand mannualy, that works.
Any idea ?
Thx



...
root: new Ext.tree.AsyncTreeNode({
text: 'ROOT',
leaf: false,
expanded: true,
cls: 'x-tree-node-root',
// Custom properties
dbid: '1',
mode: 1
}),
...

janux31
5 Mar 2010, 8:20 AM
nobody have this problem ????????
My root node is already collapsed :((

janux31

Zdeno
5 Mar 2010, 8:35 AM
Im using following code...



root: new Ext.tree.AsyncTreeNode({
text: 'Text label',
draggable:false,
id:'node0',
expanded:true
}),


and everything is fine with Ext 3.1.1