1. #1
    Ext User
    Join Date
    Dec 2008
    Posts
    2
    Vote Rating
    0
    qubic is on a distinguished road

      0  

    Default [2.2.1] childNodes in Ext.tree.TreeNode doesn't work

    [2.2.1] childNodes in Ext.tree.TreeNode doesn't work


    Ext version:2.2.1
    Code:
    var rootNode=new Ext.tree.TreeNode({
                    id: 'rootNode',
                    text: 'root',
                    expanded: true,
                    childNodes:[{text:'hello'},{text:'world'}]
                });
    var tree = new Ext.tree.TreePanel({
                    id:'menuPanel',
                    root: rootNode
                });
    Last edited by mystix; 25 Mar 2009 at 6:54 PM. Reason: post code in [code][/code] tags.

  2. #2
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    please define "doesn't work".

    please refer also to the guidelines for posting in Bugs: http://www.sencha.com/forum/showthread.php?t=13985

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    The property for child nodes is called 'children' and not 'childNodes'.

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

      0  

    Thumbs up the right answer

    the right answer


    use

    var newNode = new Ext.tree.TreeNode({
    id: nodeData.id,
    text: nodeData.text,
    expanded: true,
    leaf : false
    });
    newNode.appendChild(nodeData.childNodes)

    where nodeData is the JSON object

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