1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    30
    Vote Rating
    0
    namrms is on a distinguished road

      0  

    Default change config on combo at runtime

    change config on combo at runtime


    Hi ,

    I would like to keep a combo box component non editable initially(at this point the store is not loaded), Make it editable only on load of the corresponding store.

    How do I change the config on the fly ?

    Regards,
    Namratha

  2. #2
    Sencha User Legolas's Avatar
    Join Date
    Apr 2010
    Location
    Brazil/MG
    Posts
    58
    Vote Rating
    3
    Legolas is on a distinguished road

      0  

    Default


    Hi namrms,

    Do you tried use the method sertEditable? Like below:
    Code:
    var combo = Ext.create('Ext.form.ComboBox', {
         fieldLabel: 'State'
        ,store: yourStore
        ,queryMode: 'local'
        ,displayField: 'name'
        ,valueField: 'id'
        ,renderTo: Ext.getBody()
        ,editable: false
        ,onLoad: function() {
            var me = this;
    
    
            me.setEditable(true);
    
    
            me.callParent(arguments);
        }
    });
    I am sorry my english, I am learning yet
    Portuguese blog: http://wessdevel.blogspot.com.br/
    Twitter: @wlegolas

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    30
    Vote Rating
    0
    namrms is on a distinguished road

      0  

    Default


    yes I tried that. This seems to be working well on firefox but with IE8 it does not become editable again.

  4. #4
    Sencha User Legolas's Avatar
    Join Date
    Apr 2010
    Location
    Brazil/MG
    Posts
    58
    Vote Rating
    3
    Legolas is on a distinguished road

      0  

    Default


    I tested it and it worked in version ExtJS4.1.1, but in version ExtJS4.0.7 it not worked. If you use an earlier version of the ExtJS4.1.1 it will not work.
    I am sorry my english, I am learning yet
    Portuguese blog: http://wessdevel.blogspot.com.br/
    Twitter: @wlegolas

Thread Participants: 1

Tags for this Thread

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