6 Replies Latest reply on May 27, 2011 3:43 AM by jfb00

    comboBox not refreshing values

    jfb00 Level 3

      Hi All,

      I have two combo Box, if the first one change it fires a method and get new data from new arraycollection like:

      private function getData_Handler(event:ResultEvent):void{
                      myAC.removeAll();
                      myAC = ArrayCollection(event.result);
                      myAC.refresh();
                      myCombo.dataprovider = myAC;
                      if (myCondition == true)
                          myCombo.selectedIndex = 1;
      
      }
      

       

      I have a condition, if it is true i would like to set the index of the combo box, this works.

      But after setting the index, if I select the comboBox is not values, they are all gone but the first item is selected.

      Any ideas about this issue?

      Thanks

       

      Johnny