ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
fl.events 

DataGridEventReason  - AS3 Flash

Packagefl.events
Classpublic final class DataGridEventReason
InheritanceDataGridEventReason Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

The DataGridEventReason class defines constants that are used for the values of the reason property of the DataGridEvent object when the value of the type property is itemEditEnd.

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
  CANCELLED : String = "cancelled"
[static] The user canceled editing and does not want to save the edited data.
DataGridEventReason
  NEW_COLUMN : String = "newColumn"
[static] The user moved focus to a new column in the same row.
DataGridEventReason
  NEW_ROW : String = "newRow"
[static] Indicates that the user moved focus to a new row.
DataGridEventReason
  OTHER : String = "other"
[static] The list component lost focus, was scrolled, or is 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: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

The user canceled editing and does not want to save the edited data.

Even if you call the preventDefault() method from your event listener for the itemEditEnd event, Flash still calls the destroyItemEditor() editor to close the editor.

Related API Elements

NEW_COLUMN

Constant 
public static const NEW_COLUMN:String = "newColumn"

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

The user moved focus to a new column in the same row.

Your event listener can include logic that permits a change in focus or that stops it. For example, if an event listener detects that the user entered an invalid value, the event listener can make a call to the preventDefault() method to stop focus from being moved to a new item. The item editor remains open and the user continues to edit the current item. To close the editor that is associated with the current item, call the destroyItemEditor() method.

Related API Elements

NEW_ROW

Constant 
public static const NEW_ROW:String = "newRow"

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

Indicates that the user moved focus to a new row.

Your event listener can include logic that permits a change in focus or that stops it. For example, if an event listener detects that the user entered an invalid value, the event listener can make a call to the preventDefault() method to stop focus from being moved to a new row. The item editor remains open and the user continues to edit the current item. To close the editor that is associated with the current item, call the destroyItemEditor() method.

Related API Elements

OTHER

Constant 
public static const OTHER:String = "other"

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

The list component lost focus, was scrolled, or is in a state where editing is not allowed.

Even if you call the preventDefault() method from your event listener for the itemEditEnd event, Flash still calls the destroyItemEditor() editor to close the editor.

Related API Elements