simply you can make
RecordDef rDef = new RecordDef(new FieldDef[]{new StringFieldDef("trackId"),
new StringFieldDef("track")});
Record record = rDef.createRecord(new String[]{"60", "1 min"});
trackcomb.getStore().add(record);
....
is it are you asking for?

Otherwise do you want to load from a remote url???
there are examples on the showcase..ComboBox.REMOTE means loading
from a remote url ComboBox.LOCAL instead like on your code loading local
data.

bye pat

2009/7/13 subbu <[email protected]>

>
> 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