1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    31
    Vote Rating
    0
    V Srinivasan is on a distinguished road

      0  

    Default Populating Textfield based on the selection of node in a tree

    Populating Textfield based on the selection of node in a tree


    I need to Populate a Textfield with the nodes text based on the selection of node in a tree

    Below is what i tried:

    Code:
    
    
    listeners:{ click:function(node,event){ var flag= node.getId().text;
    var temp=Ext.getCmp('TreeText');
    temp.value=flag;
    Here TreeText is the id of the textfield

  2. #2
    Ext User
    Join Date
    Oct 2010
    Posts
    31
    Vote Rating
    0
    V Srinivasan is on a distinguished road

      0  

    Default


    Issue solved.here is the code

    Code:
    
    
    listeners:{ click:
    function(node,event){ var a=Ext.getCmp('TreeText'); var b= node.text; a.setValue(b); }
    }

Similar Threads

  1. tree node selection
    By tkm in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 20 Feb 2011, 2:57 AM
  2. Tree node selection (SAME TREE NODE, NOT JUST SELECTION CHANGED)
    By FrankCA in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 16 Nov 2009, 2:02 PM
  3. Populating second combo based on first combo selection
    By infocontroller in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 1 Sep 2009, 8:49 PM
  4. Populating Grid based on Tree selection...
    By NoahK17 in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 13 May 2008, 12:54 PM
  5. Tree root node selection
    By paulsk in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Jan 2008, 3:05 AM
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