Re: [flexcoders] Re: Datagrid context menu question

2007-12-13 Thread Scott Melby
Yeah... my menus actually know which object they are invoked for. I do this by overriding the rollOver on the dataGrid and passing the row that was rolled over to the menu. So, in the MENU_SELECT the menu just finds that item in the grid and selects it (if not already selected). hth Scott S

[flexcoders] Re: Datagrid context menu question

2007-12-12 Thread letterpigeon
Hi Scott, I tried your suggestion and in my handleMenuSelectEvent, I do: var dataGrid:DataGrid = event.contextMenuOwner as DataGrid; dataGrid.selectedIdex = (event.mouseTarget as DataGridItemRenderer).listData.rowIndex - 1; but this solution does not always work, because event.mouseTarget does n