Hi all,
I have using gwt ext combo .Values are displaying in the
list.But i need a value to be displayed by default.Following is my
code.Right now no values displayed by default.
final Store store2 =
new SimpleStore(new String[] {"mapID", "mapname", },
new String[][] { new String[] { "0",
"Google Map" },
new String[] { "1", "Tele-Atlas Europe"
},
new String[] { "2", "Tele-Atlas
Middleeast" } });
store2.load();
final ComboBox mapcomb = new ComboBox();
mapcomb.setForceSelection(true);
mapcomb.setMinChars(1);
mapcomb.setStore(store2);
mapcomb.setMode(ComboBox.LOCAL);
mapcomb.setDisplayField("mapname");
mapcomb.setTriggerAction(ComboBox.ALL);
mapcomb.setTypeAhead(true);
mapcomb.setSelectOnFocus(true);
mapcomb.setWidth(160);
mapcomb.setHideTrigger(false);
Thanks and Regards,
Subash K.S
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---