ExtJS Hack: How To Get Selected Index of ExtJS ComboBox ExtJS Hack: Come arrivare selezionati Indice dei ExtJS combobox
ExtJS ComboBox doesn’t advertise, in its documentation, any way to get the selected index of a ComboBox. ExtJS ComboBox non fa pubblicità, nella sua documentazione, un modo per ottenere l'indice selezionato di una ComboBox. Looking at the code I realized we can use the undocumented property selectedIndex. Guardando il codice ho capito siamo in grado di utilizzare la proprietà SelectedIndex privi di documenti. However there is a catch. Tuttavia vi è una cattura.
ComboBox.reset() doesn’t set the selectedIndex to -1, which it should. ComboBox.reset () non imposta il SelectedIndex a -1, che dovrebbe. So whenever you use selectedIndex, remember to reset it manually after reset(). Così ogni volta che si utilizza SelectedIndex, ricordatevi di reimpostare manualmente dopo il reset (). Otherwise it will return stale value. In caso contrario, esso ritornerà vecchio valore.
Filed under Elencato sotto Headline News Headline News , How To Come , Javascript , Programming Programmazione , Tech Note Nota tech , Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | questo articolo |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |



