2 Replies Latest reply on Mar 21, 2011 7:53 AM by EvyatarBH

    Simple ComboBox question

    jeffreypritchard

      Hi,

       

      I have a ComboBox on a panel. The panel is part of a 'view' which is contained in a ViewStack. The ComboBox uses an ArrayCollection as it's dataProvider. I am able to change the value of the ComboBox (using the 'change' event), and that works fine.

       

      The problem I have is when I leave that screen and come back to it, I'd like the ComboBox.selectedItem to be the one that was selected the last time. Instead, it seems that the ComboBox is defaulting to the first item in the list every time.

       

      Is there a way to initialize a ComboBox value programatically to a specific value ? This seems like it should be really simple, but I am having a really hard time with it.

       

      Any help would be appreciated. Thanks in advance.