-
31 Jan 2013 4:38 AM #1
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
-
31 Jan 2013 8:29 AM #2
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
-
31 Jan 2013 7:46 PM #3
yes I tried that. This seems to be working well on firefox but with IE8 it does not become editable again.
-
5 Feb 2013 2:38 AM #4
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


Reply With Quote