1. #1
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default changing combo box to text field dynamically

    changing combo box to text field dynamically


    Hi


    Can we change a combo box to text field dynamically?

    i wanted like this when i select a value from one combox box i have to replace or show a text field in the place another Combo box

    below mentioned is the combo which i have to replace

    containmatches is an item of a panel

    Code:
    var containmatches = new Ext.form.ComboBox({ 
                    id:'containcriteria'+this.itemCount, 
                    hideLabel:true, 
                    store:  new Ext.data.JsonStore({ 
                        fields: ['value', 'title'], 
                        data: containselect 
                    }), 
                    editable: false, 
                    allowBlank:false, 
                    width:135, 
                    mode: 'local', 
                    triggerAction: 'all', 
                    emptyText: 'Select Type', 
                    selectOnFocus: true, 
                    labelSeparator: '', 
                    hiddenName:'searchCondition['+this.itemCount+']', 
                    valueField: 'value', 
                    displayField: 'title', 
                    itemCls: 'floatLeft', 
                    tpl:templates.combo('title') 
                });

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    use the Container add/remove methods.

    this screencast might help.

    http://tdg-i.com/58/ext-js-screencas...add-and-remove

  3. #3
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default Solved

    Solved


    Thanks for the reply , it worked!!

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..." hd porno faketaxi