2 Replies Latest reply on Nov 27, 2008 9:48 PM by Newsgroup_User

    Update/Refresh Combobox

    wiser4me97 Level 1
      how can i refresh the combobox so it will not display the previously selected item when i view from one canvas to another canvas of a ViewStack?
        • 1. Re: Update/Refresh Combobox
          gallaharsha Level 1
          Are you getting the list of items in the combobox dynamically from the server and you already have the data in the front end ??
          If the list is an array then define a arraycollection as:
          [Bindable]
          public var dpNamesCollection:ArrayCollection;

          and give dpNamesCollection as dataprovider to the combobox.
          So when ever dpNamesColleciton changes the list gets updated accordingly..

          Hope this solves your issue...
          • 2. Re: Update/Refresh Combobox
            Level 7

            "wiser4me97" <webforumsuser@macromedia.com> wrote in message
            news:ggldmb$k8$1@forums.macromedia.com...
            > how can i refresh the combobox so it will not display the previously
            > selected item when i view from one canvas to another canvas of a
            > ViewStack?

            Set its selectedIndex to -1