I have a multiple selectitem in a form bounded with a data source.
With Internet Explorer, when I select more than one row and I execute a validation, at the end of the list it makes a new row that contain the selected values separated by semicolon!!!
With Firefox it works fine.
My configuration:
•Development mode
•SmartGWT 2.2
•GWT 2.0.3
•Internet Explorer 8
•Windows XP SP3
Is there any workaround(s) available?
thanks in advance
sg
My sample code:
With Internet Explorer, when I select more than one row and I execute a validation, at the end of the list it makes a new row that contain the selected values separated by semicolon!!!
With Firefox it works fine.
My configuration:
•Development mode
•SmartGWT 2.2
•GWT 2.0.3
•Internet Explorer 8
•Windows XP SP3
Is there any workaround(s) available?
thanks in advance
sg
My sample code:
Code:
public void onModuleLoad() {
VLayout vMain = new VLayout();
vMain.setLayoutAlign(Alignment.CENTER);
vMain.setLayoutAlign(VerticalAlignment.CENTER);
DataSource dataSource = new DataSource();
dataSource.setClientOnly(true);
DataSourceTextField state = new DataSourceTextField("state", "State");
state.setMultiple(true);
dataSource.setFields(state);
final DynamicForm form = new DynamicForm();
form.setDataSource(dataSource);
SelectItem selectItemMultipleGrid = new SelectItem("state");
selectItemMultipleGrid.setTitle("Select Multiple (Grid)");
selectItemMultipleGrid.setMultiple(true);
selectItemMultipleGrid.setMultipleAppearance(MultipleAppearance.GRID);
selectItemMultipleGrid.setHeight(200);
selectItemMultipleGrid.setValueField("code");
selectItemMultipleGrid.setDisplayField("name");
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");
selectItemMultipleGrid.setValueMap(valueMap);
form.setFields(selectItemMultipleGrid);
IButton butValidate = new IButton("Validate");
butValidate.addClickHandler(new ClickHandler(){
@Override
public void onClick(
com.smartgwt.client.widgets.events.ClickEvent event) {
form.validate();
}
});
vMain.addMember(form);
vMain.addMember(butValidate);
vMain.draw();
}
Comment