How to use EXT-GWT ComboBox

How do I use ComboBox in EXT-GWT with static data. For example I just want to hard code (for demo purposes) list of First Names and display it to the user. I don’t want to use any dummy objects that they are using in their samples. Where can I find simple example with Strings?

Answer

Here is the code I use in my project:

SimpleComboBox combo = new SimpleComboBox();
combo.add("One");
combo.add("Two");
combo.add("Three");
combo.setSimpleValue("Two");

Leave a Reply

Your email address will not be published. Required fields are marked *