0 Replies Latest reply on Jul 31, 2008 6:57 AM by Newsgroup_User

    Choosing an Editor in itemEditBegin event

    Level 7
      Hi

      I am trying to choose a cell editor dynamically depending on the value
      of some data in the row.

      According to the docs I can do it like this:


      You can also create an event listener to determine which item editor you
      use to edit the cell. For example, you might have two different item
      editors. Within the event listener, you can examine the data to be
      edited, open the appropriate item editor by setting the itemEditor
      property to the appropriate editor, and then call the createItemEditor()
      method. In this case, first you call preventDefault() to stop Flex from
      calling the createItemEditor() method as part of the default event listener.


      I have tried and I am a bit stuck, does anyone know how i can do this?

      Thanks

      Martyn