1. #1
    Banned
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    101
    Vote Rating
    0
    junkzilla is on a distinguished road

      0  

    Default can't select option in combobox

    can't select option in combobox


    Hi all.
    I populated a combobox with a XML file.
    The options render ok, but when I try to select one, only the first option gets selected, always.
    This is my code.

    Code:
                  var vatRecords = Ext.data.Record.create([
                        {name: 'vatid', type: 'string'}
                        ,{name: 'vat', type: 'float'}
                    ]);
                    
                    var vat_ds = new Ext.data.Store({
                        url: '<%= request.getContextPath() %>/remoteadmin/products/vat/index.do'
                        ,reader: new Ext.data.XmlReader({
                            record: 'row'
                        }, 
                        vatRecords)
                    });                                                
                   
                    var combo = new Ext.form.ComboBox({                    
                        store: vat_ds
                        ,valueField: 'vatid'
                        ,typeAhead: true
                        ,displayField:'vat'          
                        ,mode: 'remote'                    
                        ,triggerAction: 'all'
                        ,emptyText:'Select vat...'
                        ,selectOnFocus:true
                        ,applyTo: 'vat_cb' 
                        ,forceSelection: true
                    });
    Thanks in advanced.
    Cheers.

  2. #2
    Banned
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    101
    Vote Rating
    0
    junkzilla is on a distinguished road

      0  

    Default


    My mistake, sorry.
    The valueField wasn't 'vatid', it was 'id'.
    Thanks anyway.

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