View Full Version : Need Tree node click to load a different tree

25 Apr 2007, 12:26 PM

So I want a windows explorer type of view where there are two panes: the left
pane shows folder hierarchy and the right pane shows the contents of the clicked
folder. So how do I get the Tree widget to do this? The problem I see is that if I do:

folderTree.on('click', function(node){
if (node.attributes.cls == 'folder' && node.id != '0') {
fileTreeLoader.baseParams = {"user" : Ext.get("username").dom.value, "id": node.id};
fileTreeRoot.expand(false, false);

Then I'm not and the class method is not setting the node param properly. Can I override
this similarly to how I override baseParams?