1 Reply Latest reply on Nov 15, 2010 10:06 PM by Flex harUI

    ToggleButtonBar selectedIndex gets set to -1

    hermasj

      Hi folks... I'm fairly new to Flex... this is my first post... maybe I'm just missing something obvious...

       

      It appears that the selectedIndex of my ToggleButtonBar is getting set to -1 when I use PopUpManager to display a popup window. Once the popup window has been dismissed the previously selected button in my ToggleButton Bar is no longer selected and if I check selectedIndex it has been set to -1.  I'd expect the same button to be selected following the popup as was selected before.

       

      I also checked the value of toggleOnClick and that's set to false.

       

      Is what I'm seeing the "expected behavior" for some reason?  Do I have to save the selectedIndex and then restore it back after dismissing the popup window... that seems kind of odd.

       

      Thanks for any help,

      Steve