Reputation: 97
I"m using Flex 4 and an AdvancedDataGrid. I need to keep track of the previously selected item. I can't think of where to capture this though. In an itemClickHandler method, the grid's selectedItem value is already the current selected item.
The focusIn and focusOut attributes apply to the whole datagrid, not to just one row in the datagrid.
Thank you. Bonnie
Upvotes: 1
Views: 664
Reputation: 1664
public function yourConstructor(){
ChangeWatcher.watch(yourAdvancedDataGrid, "selectedItem",someHandler);
}
public var oldSelectedItem:Object;
protected function someHandler(event:PropertyChangeEvent):void{
oldSelectedItem = event.oldValue;
}
Upvotes: 2