ExtJS Hack: How To Get Selected Index of ExtJS ComboBox extjs 마차 : extjs 색인을 선택하는 방법 콤보 상자를
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. 그렇지 않으면이 상한 값을 반환합니다.
Filed under 밑에 Headline News 헤드 라인 뉴스 , How To 하는 방법을 , Javascript 자바 스크립트 , Programming 프로그래밍 , Tech Note 기술 참고 사항 , Web 웹 | |
| |
RSS 2.0 rss 2.0 | |
Trackback 트랙백 this Article | 이 문서 |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |



