pkt1583 / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

TreePanel collapseAll #352

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

public class CategoryMenu extends TreePanel
{   
    public CategoryMenu()
    {
        setTitle("Code navigation");    
        this.setUseArrows(true);        
        this.setRootVisible(false);      
        this.setFrame(true);
        this.setAnimate(true);
        this.setWidth(160);      

        LoadMenuContent();               
    }

    private void LoadMenuContent()
    {
        final XMLTreeLoader loader = new XMLTreeLoader();

        loader.setDataUrl("data/main_menu_tree.xml");  
        loader.setMethod(Connection.GET);  
        loader.setRootTag("chapters");  
        loader.setFolderTitleMapping("@title");  
        loader.setFolderTag("menu");  

        loader.setLeafTitleMapping("@title");  
        loader.setLeafTag("item");  
        loader.setQtipMapping("@qtip");  
        loader.setIconMapping("@icon");  

        AsyncTreeNode root = new AsyncTreeNode("Chapters", loader);  
        this.setRootNode(root);

        this.collapseAll();    

    }

}

What is the expected output? What do you see instead?

On  ie 6 , 7 and Firefox 2 the collapseAll workes fine but on the firefox
3.0 all my items are expanded.

What version of the product are you using? On what operating system?
GWT-Ext 2.0.4 windows XP

Original issue reported on code.google.com by silviu.cpp@gmail.com on 18 Jun 2008 at 12:23

GoogleCodeExporter commented 8 years ago
Thanks. It works for me. I found the solution that I find. :-)

Original comment by MsAyeAye...@gmail.com on 8 Aug 2008 at 1:19