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
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar