Reputation: 9232
I have read the relevant question but I am still not be able to find the answer to my problem. I am using a SelectionCell in a column in a Datagrid which obviously contains a ListBox. However it does not provide direct access to ListBox and therefore I cannot find the way to get the selected value when the user selects an option of the ListBox. I am aware of the method onBrowserEvent but it does return anything. I need the value selected by the user to save it in a database. I need probably something like the line of codes contained in the above method:
SelectElement select = parent.getFirstChild().cast();
String newValue = options.get(select.getSelectedIndex());
The parent is however not available to any custom Method, so what I could do in order to have the selected value?
Upvotes: 0
Views: 1163
Reputation: 64541
It looks like you're looking for FieldUpdater
. Sample usage in the question you linked to.
Upvotes: 1