PDA

View Full Version : Trees with singleExpand



skirtle
29 Oct 2011, 4:56 AM
Trees with singleExpand: true go totally haywire. The first node expands fine but subsequent nodes show the wrong children.


Ext.create('Ext.tree.Panel', {
height: 300,
renderTo: Ext.getBody(),
singleExpand: true,
width: 300,
root: {
text: 'Root',
children: [
{text: '1', children: [{text: '1.1', leaf: true}, {text: '1.2', leaf: true}]},
{text: '2', children: [{text: '2.1', leaf: true}, {text: '2.2', leaf: true}]},
{text: '3', children: [{text: '3.1', leaf: true}, {text: '3.2', leaf: true}]}
]
}
});