Created
December 2, 2009 20:38
-
-
Save lukesh/247548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function handleItemDoubleClick(event:ListEvent):void | |
{ | |
var dg:DataGrid = DataGrid(event.target); | |
dg.editable = true; | |
dg.editedItemPosition = event; // { rowIndex: event.rowIndex, columnIndex: event.columnIndex }; | |
} | |
private function handleItemEditEnd(event:DataGridEvent):void | |
{ | |
var dg:DataGrid = DataGrid(event.target); | |
dg.editable = false; | |
} | |
<mx:DataGrid | |
doubleClickEnabled="true" | |
itemDoubleClick="handleItemDoubleClick(event)" | |
itemEditEnd="handleItemEditEnd(event)" | |
> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment