I've filled a grid with data. One of the fields uses an optionDataSource to translate an ID to a descriptive name. The grid is showing the name but how can I access it in by SmartGWT code? ListGridRecord.getAttribute(fieldName) will get me the ID, but is there some API that is equivalent to FormItem.getDisplayValue() for a ListGridField?
Announcement
Collapse
No announcement yet.
X
-
Ah - ListGrid.getDisplayValue().
This has long existed in SmartClient but hadn't been wrapped for SmartGWT.
We've now added this - it takes a fieldName and a dataValue and returns the display value derived either from an explicit field valueMap or a specified displayField.
Should be present in the next nightly build.
Comment