Hi Team,
I have addEditorEnterHandler specified for a ListGrid, which has some field editors specified as ComboBoxItem
In SmartGWT 4.1, we were having below code,
After upgrading to SmartGWT 12.1, I am getting below exception,
Can you suggest how to achieve what i want here ?
I have addEditorEnterHandler specified for a ListGrid, which has some field editors specified as ComboBoxItem
In SmartGWT 4.1, we were having below code,
Code:
@Override public void onEditorEnter(EditorEnterEvent event) { ListGrid editedGrid = event.getGrid(); if(editedGrid!=null){ FormItem fieldEditor=editedGrid.getEditFormItem(FIELD_NAME); if (null != fieldEditor) { ComboBoxItem combo = (ComboBoxItem) fieldEditor;
Code:
Caused by: java.lang.ClassCastException: com.smartgwt.client.widgets.form.fields.TextItem cannot be cast to com.smartgwt.client.widgets.form.fields.ComboBoxItem
Comment