1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Taiwan
    Posts
    74
    Answers
    1
    Vote Rating
    0
    cwtuan is an unknown quantity at this point

      0  

    Default Unanswered: Keep the Visible properties for a tree node after it's parent expanded

    Unanswered: Keep the Visible properties for a tree node after it's parent expanded


    ExtJS doesn't support setting Visible properties for the tree node.
    Here's a workaround http://www.sencha.com/forum/showthre...ode-in-ExtJS-4

    PHP Code:
               setNodeVisible : function(nodeIdvisible) {
               var 
    node this.findNode(nodeId);
                var 
    view this.getView();
                var 
    el Ext.fly(view.getNodeByRecord(node));
                
    el.setVisibilityMode(Ext.Element.DISPLAY);
                
    el.setVisible(visible);
            } 
    However, the Visible properties for a tree node would be reset after it's parent expanded.
    That is, the invisible nodes would show again after it's parent expanded.
    Any idea to keep the Visible properties?
    Thanks in advance!

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Location
    Taiwan
    Posts
    74
    Answers
    1
    Vote Rating
    0
    cwtuan is an unknown quantity at this point

      0  

    Default


    After investigating the DOM by using firebug, I found the node expand method doesn't reset CSS, but regenerate its children node.
    That's the reason why all children show again.

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."