Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    96
    Vote Rating
    0
      0  

    Question [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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    If you take that out does it work?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2008
    Posts
    96
    Vote Rating
    0
      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
      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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •