Is there any way to get unchecked data from optiongroup?

I have multiselect option group , but seem like i cant find answer about this

I only saw

  • getItemIds() for get every item in the group
  • getvalue() for get selected item

thanks

Hi,

getValue returns a Set of selected values if you have set multiSelect as true. If you want the items that are NOT selected, you’ll have to do something like

   Set unselected = allPossibleItemsSet.removeAll((Set) optionGroup.getValue());

Hope this helps,
Olli