1 Reply Latest reply on Apr 26, 2007 9:03 PM by Rahul Mainkar

    how to exit edit mode (editable comboBox)?

    dnystwn
      I have an editable comboBox. When a user clicks on the text area, he can rename the text and the idea is to click outside the comboBox to commit the new value.

      The problem now is when the user clicks outside the comboBox, the comboBox remains in edit mode(with the blinking prompt). How do I make it get out of that mode?

      thanks in advance
        • 1. Re: how to exit edit mode (editable comboBox)?
          Rahul Mainkar Level 1
          Hi,
          setting comBox.editable=false in the function where you commit the vaules will solve this purpose.
          Also remember to set it in edit mode when click event on the combobox happens

          Ex.
          <mx:ComboBox id="comBox" click="setMode()"/>

          public function setMode():void{
          comBox.editable=true;
          }

          I hope I have given you a direction to think upon.
          Take care