PDA

View Full Version : TreePanel in TabPanel



FireGlow
1 Jul 2008, 6:05 PM
Hey!

I want to have TreePanel in my TabPanel, but it doesn't show up... anything i forgot?



//Der Baum
Item.tree.tree = new Tree.TreePanel
({
id: 'tree',
title: 'Navigation',
animate:true,
containerScroll: true,
rootVisible:false,
border: false,
width: 200,
split:true,
autoScroll:true,
margins: '5 0 5 5',
collapsible: true,
useArrows:true,
loader: new Tree.TreeLoader
({
dataUrl:'../../ItemFolderController'
}),
preloadChildren: true
});

//Wurzel
var root = new Tree.AsyncTreeNode
({
text: 'Umfragen',
draggable:false,
id:'root'
});

Item.main.navigation = new Ext.TabPanel({
id: 'navigation',
activeTab: 0,
items : [Item.tree.tree]
});

Item.main.mainframe = new Ext.Panel(
{
layout:'border',
applyTo: Ext.get('content'),
autoWidth: true,
items: [Item.main.navigation]
});

evant
1 Jul 2008, 6:07 PM
You've got a border layout with no center region.

FireGlow
1 Jul 2008, 6:24 PM
thanks a lot.