Hi all,
            how can we dynamically load a ComboBox in gwtext.this is
my combo box settings.

final Store trackStore =
                        new SimpleStore(new String[] {"trackID", "track", }, 
getTrackLengths
());

                trackStore.load();

                final ComboBox trackcomb = new ComboBox();
                trackcomb.setValueField("trackID");
                trackcomb.setValue("300");
                trackcomb.setForceSelection(true);
                trackcomb.setMinChars(1);
                trackcomb.setStore(trackStore);
                trackcomb.setMode(ComboBox.LOCAL);
                trackcomb.setDisplayField("track");
                trackcomb.setTriggerAction(ComboBox.ALL);
                trackcomb.setTypeAhead(true);
                trackcomb.setSelectOnFocus(true);
                trackcomb.setWidth(70);
                trackcomb.setHideTrigger(false);

               private static String[][] getTrackLengths() {
                       return new String[][]{
                                       new String[]{"60", "1 min"},
                                       new String[]{"300", "5 min"},
                                       new String[]{"600", "10 min"},
                                       new String[]{"900", "15 min"},
                                       new String[]{"1800", "30 min"},
                                       new String[]{"3600", "1 h"}};
              }
wht is the difference in setting mode to LOCAL and REMOTE.Please
provide me a example that loads dynamically.

Thanks and Regards,

                              Subash
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to