ExtJS Hack: How To Get Selected Index of ExtJS ComboBox

By Angsuman Chakraborty, Gaea News Network
Monday, August 20, 2007

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 manually after reset(). Otherwise it will return stale value.

Discussion

Hasmukh
September 30, 2009: 1:58 am

hi, i have one asp.net form on which there are two dropdownlist controls are there,

if first combo box value selected then automatically second combo box value should come from database

and it should be without autopostback

thanks in advance,


prateek
May 1, 2009: 11:48 am

i want to know how to hack an orkut account?
i have such a software which can hack orkut acc. but if and only if someone visit on his ID bt i want to know the way through which i can break the password without visiting on that ID.

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :