ExtJS Hack: How To Get Selected Index of ExtJS ComboBox

ExtJS Hack: How To Get Selected Index of ExtJS ComboBox

Note: This article will be emailed to your friend.

ExtJS ComboBox doesn’t advertise, in its documentation, any way to get the selected index of a ComboBox. Looking at the code I realized we can use the undocumented property selectedIndex. However there is a catch.

ComboBox.reset() doesn’t set the selectedIndex to -1, which it should. So whenever you use selectedIndex, remember to reset it [...]

Read the rest of this article (64 words)

Please fill in the following fields

* - Required

Your Name: *

Your E-Mail: *

Your Remarks:

Friend's Name: *

Friend's E-Mail: *

Protected by Comment Guard Pro