3 Replies Latest reply on Sep 20, 2008 1:10 AM by nikos101

    Reset the combobox so that it shows its prompt

    nikos101 Level 2
      Lets say I have a combo box:

      <mx:ComboBox rowCount="10" id="cbEdit" close="cbClose(event)" change="cbClose(event)" width="306" labelField="fullName"
      x="10" y="10" prompt="Select staff member to edit">

      Say I want to reset the combobox so that I shows its prompt instead of the value that the user selected. Do I do it using:

      cbEdit.selectedIndex = 0;

      This way seems a bit buggy