PDA

View Full Version : combo + tree panel



wp.joju
11 Feb 2010, 11:47 PM
hi there, i'm trying to make a tree panel inside a combo box, it is going well so far using several posts i've seen throughout this forum, the problem is if the combo box is editable then the combo list item is not showing up after you've typed something into the combo box, this problem does not happen if you haven't typed anything to the combo box yet




var tree1 = new Ext.tree.TreePanel({
id:'directorytree',
loader: new Ext.tree.TreeLoader(),
border:false,
lines: false,
rootVisible:false,
selModel: new Ext.tree.MultiSelectionModel(),
containerScroll: false,
expanded:true
});
var directorytreejson = window.external.GetDirectoryTree();
var root = new Ext.tree.AsyncTreeNode({
text: 'root',
draggable:false,
id:'source',
children: Ext.decode(directorytreejson)
});
tree1.setRootNode(root);
tree1.on('click',function(node){
comboxWithTree.setValue(node.id.substring(9));
comboxWithTree.collapse();
loadFileListFromLocation(comboxWithTree.getValue());
});
comboxWithTree.on('expand',function(){
tree1.render('tree1');
loadDirectoryTreeOfCurrentLocation(tree1);
});

wp.joju
15 Feb 2010, 6:30 AM
is there any reason why the tree inside the combo box will not show up after typing something into the combo box?