1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    96
    Vote Rating
    0
    ritcoder is on a distinguished road

      0  

    Question [4.1b2] Tree Node items disappear as soon as the node is expanded

    [4.1b2] Tree Node items disappear as soon as the node is expanded


    Hi,
    I'm having an interesting scenario where when a tree node is expanded, it shows a bit of its items and then disappears altogether. At the moment, I'm unable to tell what causes that.

    Part of the code I'm using the refresh the tree is as below.
    PHP Code:
    refreshRoot: function () {
            var 
    me this;
            
    this.refresh(this.folder, function (ret) {
                if (!
    ret.success) {
                    
    info(ret.message'Refresh folder failed');
                    return;
                }
                
    ret.data.expanded true;
                
    me.tree.store.setRootNode({ text'Project File'expandedtruechildren: [ret.data] });
            });
        }, 
    ret.data is like this
    PHP Code:
    {text:'Text',path:'/',children: [
        {
    text:'Some entry',leaf:truepath:'/someentry'},
        {
    text:'Some folder'path:'/someFolder',children: [...]}
    ]} 
    Could it be the cause or this is a bug?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    If you take that out does it work?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2008
    Posts
    96
    Vote Rating
    0
    ritcoder is on a distinguished road

      0  

    Default


    Dont really know how I'll take that out.
    That is how I load the data into the tree.
    I call that function after rendering the tree and also when the user clicks a refresh button.

    Is there another way of doing the same thing without using that function?

  4. #4
    Sencha User
    Join Date
    Jul 2008
    Posts
    96
    Vote Rating
    0
    ritcoder is on a distinguished road

      0  

    Default


    I've not had this issue for a while now since I turned of animation for the treepanel.
    Could that be the cause?

Thread Participants: 1

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..." hd porno faketaxi