ExtJS ComboBox doesn’t advertise, in its documentation, any way to get the selected index of a ComboBox. ExtJS ComboBox не реклама, в свою документацию, любой способ получения выбранного индекса ComboBox. 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. В противном случае он будет возвращаться устарела стоимости.