I have a custom-build form item. It is a combobox that presents a dropdown list with several columns. The class is derived from the smartGWT ComboBoxItem (class CustomComboBoxItem extends ComboBoxItem).
The CustomComboBoxItem works fine in a form.
There is a problem when using the CustomComboBoxItem in the row editor of a ListGrid.
The method ComboBoxItem.getSelectedRecord() always fails with the following exception:
Exception caught: (TypeError) @com.smartgwt.client.widgets.form.fields.ComboBoxItem::getSelectedRecord()([]): Object doesn't support property or method 'getSelectedRecord'
I have attached the full stack trace.
I created a minimal test code to reproduce the issue. It is derived from the BuildInDS sample code. Just add/replace the files attached below.
In order to trigger the exception: edit a row in the ListGrid, open the dropdown for the "Item" column and click on an item in the dropdown list.
I'm using SmartGWT Framework (SNAPSHOT_v9.1d_2013-12-03/PowerEdition). The issue is reproducible in IE9 and FF16.
I suspect that could be a bug in SmartGWT?
The CustomComboBoxItem works fine in a form.
There is a problem when using the CustomComboBoxItem in the row editor of a ListGrid.
The method ComboBoxItem.getSelectedRecord() always fails with the following exception:
Exception caught: (TypeError) @com.smartgwt.client.widgets.form.fields.ComboBoxItem::getSelectedRecord()([]): Object doesn't support property or method 'getSelectedRecord'
I have attached the full stack trace.
I created a minimal test code to reproduce the issue. It is derived from the BuildInDS sample code. Just add/replace the files attached below.
In order to trigger the exception: edit a row in the ListGrid, open the dropdown for the "Item" column and click on an item in the dropdown list.
I'm using SmartGWT Framework (SNAPSHOT_v9.1d_2013-12-03/PowerEdition). The issue is reproducible in IE9 and FF16.
I suspect that could be a bug in SmartGWT?
Comment