You can get at the item via listGrid.getEditFormItem(<fieldName>)
Your code would look something like this:
Code:
divisionSelectItem.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { FormItem departmentItem = localDataGrid.getEditFormItem("department"); departmentItem.setValueMap(getDepartmentValueMap((String)event.getValue())); departmentItem.setValueIcons(getDepartmentValueIcons((String)event.getValue())); } });
I've also made an assumption that you're taking a similar approach for the valueMap of the department field - doing this would get rid of the need for an editorValueMap function altogether.
(We'll be considering internally whether it makes sense to add an editorValueIcons function as well, but if we do that wouldn't likely be backported to older branches)
Regards
Isomorphic Software
Leave a comment: