-
19 Jul 2009 5:15 PM #1
Simple Commbo Box
Simple Commbo Box
Can any one help me how to implement a simple combo box in EXT GWT with hard coded value inside the combo box. I am a beginner.
Thanks and Regards,
Sundhar
-
19 Jul 2009 11:37 PM #2
you need to update the ListStore. You can try in the following way.
ListStore<State> states = new ListStore<State>();
states.add(new State("B","Binu","Employee"));
thanks
Binu.V.M
-
20 Jul 2009 8:43 AM #3
Simple Combo Box
Simple Combo Box
I tried with your guidelines, but it is not working can you pl. send me the samples. It is showing some red mark (ListStore cannot be resolved to a type) similarly state also. so kindly help me how to create combo box.
Thanks and Regards,
Sundhar
-
20 Jul 2009 7:39 PM #4
that means ListStore and State is not in your classpath. ListStore comes with gxt.jar file
and State class you will get from the Model package. You will get it from the ext gwt exampels.
thanks
binu.v.m
-
23 Jul 2009 4:32 PM #5
Try something like this:
Code:SimpleComboBox<String> combo = new SimpleComboBox<String>(); combo.add("Some Option"); combo.add("Another Option");
-
23 Jul 2009 4:59 PM #6
simple combo box
simple combo box
Ya thanks a lot this works fine
Thanks and Regards,
Sundhar


Reply With Quote