3 Replies Latest reply on Jun 9, 2009 6:19 AM by Zolotoj

    FocusOut

    Zolotoj Level 3

      I have a custom datagriditem renderer that is based on a combobox.

      I am trying to do some things on its FoucsOut event.

       

       

       

       

       

       

       

       

      private

       

       

      function onFocusOut(event:FocusEvent):

      void

      {

       

       

      if (selectedItem == null

      && !stopSecondFocusOut)

      {

       

       

      trace

      (DataGrid(listData.owner).dataProvider.length);

      DataGrid(listData.owner).dataProvider.

      removeItemAt(DataGrid(listData.owner).dataProvider.length - 1);

      stopSecondFocusOut =

       

      true

      ;

      DataGrid(listData.owner).columns[listData.columnIndex].editable =

       

      false

      ;

       

      removeItemAt ... causes this handler to run twice. Is that right?

       

      Thanks