Hi
When I try to play SelectItem example with below code, I faced a weird problem: It’s working perfect on IE8 but not chrome. I mean when I click the arrow of select list in IE 8 ,the dropdown list could show. But in Chrome, when I clicked it, there was no responding and the dropdown list didn’t show.
Is there anyone facing this problem or knowing what’s wrong with this problem?
My Chrome version is 17.0.942.0. GWT version is 2.4. SmartGWT vesion is 2.5
Below is the code I use. The full version of the code is in tha attachment.
public void onModuleLoad() {
final DynamicForm form = new DynamicForm();
SelectItem selectItem=new SelectItem();
selectItem.setTitle("Select");
LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
valueMap.put("US", "<b>United States</b>");
valueMap.put("CH", "China");
valueMap.put("JA", "<b>Japan</b>");
valueMap.put("IN", "India");
valueMap.put("GM", "Germany");
valueMap.put("FR", "France");
valueMap.put("IT", "Italy");
valueMap.put("RS", "Russia");
valueMap.put("BR", "<b>Brazil</b>");
valueMap.put("CA", "Canada");
valueMap.put("MX", "Mexico");
valueMap.put("SP", "Spain");
selectItem.setValueMap(valueMap);
selectItem.setPickListWidth(450);
form.setItems(selectItem);
form.draw();
RootPanel.get("selecltList").add(form);
}
the “selectList” is one div’s id in host.html.
SelectItemTest.java (1.38 KB)