Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Get item index from OptionGroup

warsame bashir
9 years ago Jun 06, 2012 4:48pm

How do i get the current selected item's index (0 .. n) on an OptionGroup. I added value change listener to the component and i am trying to get the selected (single-select) item number on the event property. The api does not offer such a thing? Any suggestions