The following sequence of steps occurs when a cell in a list-based control is edited:
- User releases the mouse button while over a cell, tabs to a cell, or in another way attempts to edit a cell.
- Flex dispatches the itemEditBeginning event. You can use this event to disable editing of a specific cell or cells. For more information, see Example: Preventing a cell from being edited.
- Flex dispatches the itemEditBegin event to open the item editor. You can use this event to modify the data passed to the item editor. For more information, see Example: Modifying data passed to or received from an item editor.
- The user edits the cell.
- The user ends the editing session. Typically the cell editing session ends when the user removes focus from the cell.
- Flex dispatches the itemEditEnd event to close the item editor and update the list-based control with the new cell data. You can use this event to modify the data returned to the cell, validate the new data, or return data in a format other than the format returned by the item editor. For more information, see Example: Modifying data passed to or received from an item editor.
- The new data value appears in the cell.