ExtJS ComboBox doesn’t advertise, in its documentation, any way to get the selected index of a ComboBox. 콤보하지 않습니다 extjs 광고에 해당 설명서, 모든 선택된 인덱스를 얻는 방법을 결합합니다. Looking at the code I realized we can use the undocumented property selectedIndex. 보고의 코드를 사용하여 불법 재산 selectedIndex (깨달 할 수있습니다. However there is a catch. 그러나이 캐치합니다.

ComboBox.reset() doesn’t set the selectedIndex to -1, which it should. combobox.reset ()되지 않습니다 selectedIndex (를 -1로 설정합니다, 그것은합니다. So whenever you use selectedIndex, remember to reset it manually after reset(). 그래서 selectedIndex (사용할 때마다, 기억을 재설정 후에 그것을 수동으로 재설정 (). Otherwise it will return stale value. 그렇지 않으면이 상한 값을 반환합니다.