Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
DataGridEventReason

Package | mx.events
Class | public final class DataGridEventReason
Inheritance | DataGridEventReason Object

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The DataGridEventReason class defines constants for the values of the `reason` property of a DataGridEvent object when the `type` property is `itemEditEnd`.

Public Constants

| Constant | Defined By
--- | --- | ---
|  | CANCELLED : String = cancelled [static] Specifies that the user cancelled editing and that they do not want to save the edited data. | DataGridEventReason
|  | NEW_COLUMN : String = newColumn [static] Specifies that the user moved focus to a new column in the same row. | DataGridEventReason
|  | NEW_ROW : String = newRow [static] Specifies that the user moved focus to a new row. | DataGridEventReason
|  | OTHER : String = other [static] Specifies that the list control lost focus, was scrolled, or is somehow in a state where editing is not allowed. | DataGridEventReason

Constant Detail

CANCELLED | Constant

`public static const CANCELLED:String = cancelled`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Specifies that the user cancelled editing and that they do not want to save the edited data. Even if you call the `preventDefault()` method from within your event listener for the `itemEditEnd` event, Flex still calls the `destroyItemEditor()` editor to close the editor.

NEW_COLUMN | Constant |

`public static const NEW_COLUMN:String = newColumn`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Specifies that the user moved focus to a new column in the same row. Within an event listener, you can let the focus change occur, or prevent it. For example, your event listener might check that the user entered a valid value for the item currently being edited. If not, you can prevent the user from moving to a new item by calling the `preventDefault()` method. In this case, the item editor remains open, and the user continues to edit the current item. If you call the `preventDefault()` method and also call the `destroyItemEditor()` method, you block the move to the new item, but the item editor closes.

NEW_ROW | Constant |

`public static const NEW_ROW:String = newRow`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Specifies that the user moved focus to a new row. You handle this reason much like you handle `NEW_COLUMN`.

OTHER | Constant |

`public static const OTHER:String = other`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Specifies that the list control lost focus, was scrolled, or is somehow in a state where editing is not allowed. Even if you call the `preventDefault()` method from within your event listener for the `itemEditEnd` event, Flex still calls the `destroyItemEditor()` editor to close the editor.

Sun Mar 5 2017, 03:42 PM +11:00