1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    4
    Vote Rating
    0
    herat007 is on a distinguished road

      0  

    Default Tree nodes gets displayed twice.

    Tree nodes gets displayed twice.


    Hi ,
    I am creating a tree in a form panel. So when i first save that data in the form panel including input i have given to the tree. It gets saved to the backend.. While on editing that form data, I get the tree nodes to be displayeed twice.
    For eg: I have a tree
    Node1
    |- subnode1
    |- subnode2
    Node2
    |-subnode3
    |-subnode4


    Node these Nodes are replicated while editing the form data.
    What I am doing is that I am calling formPanel.load(function(){
    // where i am again calling

    tree.getLoader().load(tree.getRootNode(),function(){
    //something i do to the tree..
    },
    }

    somehow there is a timing issue here which i am not able to figure out. Can anyone help me its urgent.

    Thanks in advance.
    Herat

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Posts
    4
    Vote Rating
    0
    herat007 is on a distinguished road

      0  

    Default


    Please help me out here.. Kinda stuck on that.

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2010
    Posts
    18
    Vote Rating
    0
    dracofyre is on a distinguished road

      0  

    Default


    It is probably because you aren't clearing the children on load.

    Take a look at:
    http://docs.sencha.com/extjs/3.4.0/#...fg-clearOnLoad

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Posts
    4
    Vote Rating
    0
    herat007 is on a distinguished road

      0  

    Default


    It doesnt work . It says it defaults to true. I havent set any property like that. So it should default to true .

  5. #5
    Sencha Premium Member
    Join Date
    Jul 2010
    Posts
    18
    Vote Rating
    0
    dracofyre is on a distinguished road

      0  

    Default


    Without any code, its kinda of difficult to provide any good feedback. Use chrome or firebug and step through the load method. You should see the root node's children be removed in the first call. If they are then, your problem is probably related to your data.

Thread Participants: 1

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