1. v100p_2014-11-20_LGPL
When you're using a ComboBoxItem with an optionDataSource to fetch missing displayvalue's, getSelectedRecord will be null after the first redraw. This is because the displayFieldCache is not checked to resolve the selectedRecord, but it is used to display the displayvalue.
A workaround is to overwrite getSelectedRecord in ComboBoxItem:
When you're using a ComboBoxItem with an optionDataSource to fetch missing displayvalue's, getSelectedRecord will be null after the first redraw. This is because the displayFieldCache is not checked to resolve the selectedRecord, but it is used to display the displayvalue.
A workaround is to overwrite getSelectedRecord in ComboBoxItem:
Code:
getSelectedRecord: function(){ var selectedRecord = this.Super('getSelectedRecord',arguments); if(selectedRecord == null && this._displayFieldCache!=null){ selectedRecord = this._displayFieldCache.find(this.getValueFieldName(),this.getValue()); } return selectedRecord; },
Comment