Pakket | mx.events |
Klasse | public final class AdvancedDataGridEventReason |
Overerving | AdvancedDataGridEventReason Object |
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
reason
property of a AdvancedDataGridEvent object
when the type
property is itemEditEnd
.
Verwante API-elementen
Constante | Gedefinieerd door | ||
---|---|---|---|
CANCELLED : String = "cancelled" [statisch]
Specifies that the user cancelled editing and that they do not
want to save the edited data. | AdvancedDataGridEventReason | ||
NEW_COLUMN : String = "newColumn" [statisch]
Specifies that the user moved focus to a new column in the same row. | AdvancedDataGridEventReason | ||
NEW_ROW : String = "newRow" [statisch]
Specifies that the user moved focus to a new row. | AdvancedDataGridEventReason | ||
OTHER : String = "other" [statisch]
Specifies that the list control lost focus, was scrolled,
or is somehow in a state where editing is not allowed. | AdvancedDataGridEventReason |
CANCELLED | Constante |
public static const CANCELLED:String = "cancelled"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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 | Constante |
public static const NEW_COLUMN:String = "newColumn"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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 | Constante |
public static const NEW_ROW:String = "newRow"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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 | Constante |
public static const OTHER:String = "other"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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.
Wed Jun 13 2018, 11:42 AM Z