1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    6
    Vote Rating
    0
    midodjo is on a distinguished road

      0  

    Default Unanswered: tree store append child

    Unanswered: tree store append child


    I populate a tree panel with a static treeStore that not have a specific model or reader(i don't need server to populate the store becauce i populate dynamicly).when i try to append child to the root for example with this syntax:
    expressionsStore.getRootNode().appendChild({ leaf:false,
    text:'hello',
    name:'test',
    param:'param3',
    isParam:true
    })
    the node is added but the raw property of the childNode is undifined and i can't access to the property 'param' for example.Any body has an idea to resolve this problem?thx

  2. #2
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    You should use a model or at least use fields config to include all fields you need for a node.
    Code:
    var store = Ext.create('Ext.data.TreeStore', {
       fields: [{
          name: 'text', type: 'string'
       },{
           name: 'name', type: 'string'
       },{
           name: 'param', type: 'string'
       },{
           name: 'isParam', type: 'boolean' 
       }],
       ...
    });

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