Hi,
please run below modified example, click “Hide Icons" and then “Show Icons”.
Modified PickerControlsSample from showcase:
Exception with - IE9
No exception with - FF 21.0
Tested with http://smartclient.com/builds/SmartGWT/3.1p/LGPL/2013-05-21
Regards,
Fero
please run below modified example, click “Hide Icons" and then “Show Icons”.
Modified PickerControlsSample from showcase:
Code:
public Canvas getViewPanel() { final DynamicForm form = new DynamicForm(); form.setMargin(10); form.setAutoFocus(true); form.setWidth(400); form.setTitleWidth(100); PickerIcon clearPicker = new PickerIcon(PickerIcon.CLEAR, new FormItemClickHandler() { public void onFormItemClick(FormItemIconClickEvent event) { SC.say("Clear Picker clicked"); } }); clearPicker.setName("icon1"); PickerIcon searchPicker = new PickerIcon(PickerIcon.SEARCH, new FormItemClickHandler() { public void onFormItemClick(FormItemIconClickEvent event) { SC.say("Search Picker clicked"); } }); searchPicker.setName("icon2"); final TextItem pickerControls = new TextItem("pickerControls", "Picker Controls"); pickerControls.setIcons(clearPicker, searchPicker); ButtonItem showIconsButton = new ButtonItem(); showIconsButton.setTitle("Show Icons"); showIconsButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { pickerControls.showIcon("icon1"); pickerControls.showIcon("icon2"); } }); ButtonItem hideIconsButton = new ButtonItem(); hideIconsButton.setTitle("Hide Icons"); hideIconsButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { pickerControls.hideIcon("icon1"); pickerControls.hideIcon("icon2"); } }); form.setFields(pickerControls, hideIconsButton, showIconsButton); return form; }
No exception with - FF 21.0
Tested with http://smartclient.com/builds/SmartGWT/3.1p/LGPL/2013-05-21
Regards,
Fero
Comment