ExtJS Hack: How To Get Selected Index of ExtJS ComboBox ExtJS Hack: Cómo llegar índice seleccionado de ExtJS ComboBox
ExtJS ComboBox doesn’t advertise, in its documentation, any way to get the selected index of a ComboBox. ExtJS ComboBox no se anuncia, en su documentación, toda forma de obtener el índice seleccionado de un ComboBox. Looking at the code I realized we can use the undocumented property selectedIndex. Mirando el código me di cuenta de que podemos utilizar la propiedad selectedIndex indocumentados. However there is a catch. Sin embargo hay una captura.
ComboBox.reset() doesn’t set the selectedIndex to -1, which it should. ComboBox.reset () no establece la selectedIndex a -1, lo que debería. So whenever you use selectedIndex, remember to reset it manually after reset(). Así que siempre que usted utilice selectedIndex, recuerde reiniciar manualmente después de reiniciar (). Otherwise it will return stale value. De lo contrario se volverá obsoleto valor.
Filed under Filed under Headline News Headline News , How To Cómo , Javascript , Programming Programación , Tech Note Nota técnica , Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |



