Hybrid View

  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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar