Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ComboBoxItem.getSelectedRecord() fails in derived class, when used within a ListGrid

$
0
0
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.ComboBoxI tem::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?

Attached Files
File Type: txt stacktrace.txt (6.0 KB)
File Type: java BuiltInDS.java (1.2 KB)
File Type: java CustomComboBoxItem.java (1.0 KB)
File Type: xml supplyItemPickList.ds.xml (701 Bytes)

Viewing all articles
Browse latest Browse all 4756

Trending Articles