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
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
2 matches
Mail list logo