PDA

View Full Version : combobox with not present value



arpho
23 May 2013, 12:18 PM
Hi I have a combobox in a form that loads some predefined values from a variable, it works, but I would like to know if there is a way to insert a value that is not present in my list?

slemmon
28 May 2013, 10:04 AM
Do you mean adding an item to the combo's store? If so, you should be able to use combo.getStore().add() and what you'd add would correspond to the store's fields.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.Store-method-add