bzarzuela
14 Sep 2010, 8:39 PM
I have a ComboBox called Country with a remote JsonStore inside a Form. My problem is when I call the Form's load() method, the ComboBox shows the id of the country instead of the name. I understand that this is because the store of the ComboBox is not yet populated.
A call to form.getForm().findField('country_id').getStore().load() loads the data but doesn't seem to "bind" into the combobox. I can tell because if I click the trigger, it does another load() call.
I tried searching for previous threads about this but can't find any (form, load, combobox, prepopulate, etc). I don't think this is a new problem so I'd like to ask if anyone can help point me to the right direction.
Thanks.
A call to form.getForm().findField('country_id').getStore().load() loads the data but doesn't seem to "bind" into the combobox. I can tell because if I click the trigger, it does another load() call.
I tried searching for previous threads about this but can't find any (form, load, combobox, prepopulate, etc). I don't think this is a new problem so I'd like to ask if anyone can help point me to the right direction.
Thanks.