1. #1
    Sencha User
    Join Date
    Apr 2011
    Location
    Bamberg Germany
    Posts
    26
    Vote Rating
    0
    dotti is on a distinguished road

      0  

    Default Question's to TreePanel

    Question's to TreePanel


    I try to get the ID of a NODE of the Tree
    How can I do this?

    Code:
    var AktivitaetenTreeStore = Ext.create ('Ext.data.TreeStore', 
    { 
        root: 
     { 
      text  : 'RootNode',
            expanded : true,      // !!! Achtung, wenn rootVisible = false dann muss expanded = true sein vom RootNode !!!
      
      children :
      [
      { 
       id  : 'id_Aktivitaeten_Statistik',
       text : unescape('Statistik')
      }
      ]
        } 
    });      
    
    
    var AktivitaetenTree = Ext.create ('Ext.tree.Panel', 
    { 
     border   : false,     // Rahmen ausblenden
     useArrows  : true,      // Anstelle eines + als Node ein >
        rootVisible  : false,          // rootNode ausblenden
        draggable  : false,
      
     listeners:
     {
      itemclick : function (a, record , item, index, event)
       {             
        alert (item.id );         
       }     
     },
     
         store   : AktivitaetenTreeStore 
    });

    mfg


    Klaus

  2. #2
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Vote Rating
    9
    stevil will become famous soon enough

      0  

    Default


    TreeStore has a getNodeById() method, which might get what you're looking for by its record.id?

    stevil

Similar Threads

  1. static treePanel question
    By wki01 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 30 Jun 2010, 3:18 AM
  2. TreePanel question
    By badgerd in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 9 Jun 2008, 3:03 PM
  3. treepanel question
    By reminder in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 21 Mar 2008, 12:55 AM
  4. treepanel question
    By reminder in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 20 Mar 2008, 4:25 AM
  5. a question about treepanel !!
    By Thiouzz in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 31 May 2007, 10:36 AM

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..."