9 Replies Latest reply on May 26, 2009 8:45 PM by Michael Borbor

    Flex 3 - Issue with selecting an item in the list as default

    skrv Level 1

      how to select an item in the list as default

      default selected item say of index 0

      I tried stuff like this --

      listid.selectedIndex = somevalueinmyprogram - 1; // 0

      but when i debug this i get
      _selectedIndex = 0 selectedIndex = -1

      and default value is not selected why so? [i have already checked for the obvious that somevaluefrommyprogram is not equal to 0]

      Help!