当前位置: 动力学知识库 > 问答 > 编程问答 >

Adobe Flex Combobox as itemrenderer

问题描述:

I have a flex combobox as a datagrid itemEditor.

However, after selecting an item in the combobox, its necessary to click out of the combo (i.e. into another cell or elsewhere in the app) for the value to be committed to the combo. Prior to this, the combo sits 'proud' of the datagrid and the value hasnt actually been committed.

Is there a way to force the value to be immediately committed after an item has been selected and for the combo to 'lose focus'?

网友答案:

Ahh, so easy.

this.parentDocument.setFocus();
分享给朋友:
您可能感兴趣的文章:
随机阅读: