1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    45
    Vote Rating
    0
    wakatanka is on a distinguished road

      0  

    Default how to get nestedlist selected value?

    how to get nestedlist selected value?


    Hi , i've a layout with 2 list:
    1 for tipology:

    PHP Code:
    this.navigationPanel = new Ext.NestedList({
                
    id"listan",
                
    items: [{
                    
    text'anelli-dia-solitario',
                    
    value'anelli-dia-solitario'
                
    },
                {
                    
    text'anelli-dia-eternelle',
                    
    value'anelli-dia-eternelle'
                
    },
                {
                    
    text'anelli-dia-trilogy',
                    
    value'anelli-dia-trilogy'
                
    }],...... 
    and 1 for price:

    PHP Code:
     this.navigationPanel2 = new Ext.NestedList({
                
    id"listaprezzi",
                
    items: [{
                    
    text'(01) 0-300',
                    
    value'(01) 0-300'
                
    },
                {
                    
    text'(02) 300-600',
                    
    value'(02) 300-600'
                
    },
                {
                    
    text'(03) 600-900',
                    
    value'(03) 600-900'
                
    },
    ... 
    when i select a value on list 1, i fire a listener that make an ajax request.
    My problem is that when i make the ajax request i need also the list2 value, to pass as a variable.
    How can i get the list2 value?

    thanks

  2. #2
    Sencha User
    Join Date
    Jun 2010
    Posts
    45
    Vote Rating
    0
    wakatanka is on a distinguished road

      0  

    Default


    Please help me : (

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    You are using a NestedList. A NestedList doesnt really have a "selected" value. If you would use regular Lists you could use getSelectedRecords() on it.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,198
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    NestedList has been refactored as of 0.94 to use Ext.List's.

    You can now get the active record like so:
    Code:
    var record = nestedList.getActiveItem().getSelectedRecords()[0];
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Similar Threads

  1. add new items to nestedlist
    By Alexander.K in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 7 Sep 2010, 6:17 PM
  2. TabPanel (w/ TabBar) and NestedList as Content
    By sjh in forum Sencha Touch 1.x: Discussion
    Replies: 24
    Last Post: 13 Jul 2010, 1:18 PM
  3. NestedList onClick than fullscreen panel instead of list item
    By Mebel in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 2 Jul 2010, 12:59 AM
  4. Nestedlist scroll down to position
    By Simonhayre in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 1 Jul 2010, 3:42 AM
  5. Is it possible to use different components as parts of a NestedList?
    By irene in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 24 Jun 2010, 11:03 AM

Thread Participants: 2

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