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

      0  

    Default TreePanel children and nodes

    TreePanel children and nodes


    Hi,

    I have a TreePanel which I fill by setting children to its root:
    Code:
    root: {
                nodeType: "async",
                expanded : true,
                children: [{
                        text: 'Child 1',
                        checked: true,
                        draggable: false,
                        leaf: false,
                        expanded: true,
                        singleClickExpand: true,
                        children: [{
                            text: 'Child 1.1',
                            draggable: true,
                            checked: true,
                            leaf: true
                      } ...
    When I try to reach the tree children by
    Code:
    tree.root.firstChild;
    I get a null object.
    The same thing with
    Code:
    tree.root.ChildNodes
    However, the method
    Code:
    tree.root.hasChildNodes()
    returns true.
    Do you have an explanation?

    Regards

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    31
    Vote Rating
    0
    yo_haha is on a distinguished road

      0  

    Default


    Code:
    tree.getSelectionModel().select(tree.getRootNode());
    tree.selectPath(tree.getRootNode().getPath('text'), 'text');
    retun
    Code:
    TypeError: Ext.fly(node.ui.wrap) is null
    and getChildAt() doesn't exist. I'm using ExtJs 3.4. I'm sorry I didn't specify it from the beginning.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,916
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Moved to Ext3 forums.

Thread Participants: 2

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