PDA

View Full Version : Get a ComboBox's options



paulharv
5 Mar 2013, 4:50 AM
I have a Combobox in form.
I want to get an array of the options in the Combo box.
What's the best way to do that?

I assumed there would be a nice combo.getOptions() method, or that I could get the combo's store and get the options from that, but base on the console log output of both the combobox and its store this does not seem to be the case.

Thanks

paulharv
5 Mar 2013, 4:57 AM
I got it - combo.getStore().data.
Thanks!