ExtJS Hack: How To Get Selected Index of ExtJS ComboBox ExtJS Hack: Comment sélectionnez-vous indice de ExtJS ComboBox
ExtJS ComboBox doesn’t advertise, in its documentation, any way to get the selected index of a ComboBox. ExtJS ComboBox ne fait pas de publicité, dans sa documentation, de quelque manière que ce soit pour placer l'indice d'un ComboBox. Looking at the code I realized we can use the undocumented property selectedIndex. En regardant le code je me suis rendu compte que nous pouvons utiliser les sans-papiers de propriété selectedIndex. However there is a catch. Cependant il ya un hic.
ComboBox.reset() doesn’t set the selectedIndex to -1, which it should. ComboBox.reset () ne fixe pas les selectedIndex à -1, qu'elle le devrait. So whenever you use selectedIndex, remember to reset it manually after reset(). Donc, chaque fois que vous utilisez selectedIndex, n'oubliez pas de le réinitialiser manuellement après reset (). Otherwise it will return stale value. Sinon, il sera de retour vicié valeur.
Filed under Classé sous Headline News Headline News , How To Comment , Javascript , Programming Programmation , Tech Note Note technique , Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | cet article |
Email this Article Envoyer cet article
You may also like to read Vous mai également à lire |



