PDA

View Full Version : Treepanel inside combo box



pduraisa
6 Dec 2011, 2:35 AM
hi,

how to get treepanel inside combobox in extjs3.3.i used this coding but i got a tree panel in formpanel.how do i get this inside combo.

items:{
xtype:'fieldset',
labelWidth: 15,
title: 'Tech Practice',
layout:'column',
items:
[{
xtype:'treepanel',
columnWidth:'0.2',
loader : new Ext.tree.TreeLoader({
preloadChildren: false,
clearOnLoad: true,
url: 'xml/CSAT-HeirarchyGrouping.json'
}),

root : new Ext.tree.AsyncTreeNode({
text: 'root',
draggable:false,
id: 'root'
}),
tree : new Ext.tree.TreePanel({
width: 200,
rootVisible: false,
animate: false,
loader: this.loader,
collapseFirst: false
})


regards,
palani

tobiu
6 Dec 2011, 4:03 AM
the list of a combobox is always a plain dataview.

you can use a triggerField instead, create a custom floating container aligned under it which contains your treePanel (or directly show your treepanel).