[flexcoders] Data Grid as itemRenderer not getting mouse events

2009-10-07 Thread Nick Middleweek
Hello,

I have an Adv Data Grid and Column 1's itemRenderer is set to an MXML
component that has a DataGrid in it.

This (sub) DataGrid is shown when a button is clicked in another column.
Works great, but...

I'm trying to resize the columns of the sub DataGrid but the mouse events
don't seem to be getting through... Except for in Column 1 of the main Adv
DataGrid and also column 3 which has a custom itemRenderer set for that
column.

The (sub) DataGrid has *resizableColumns=true*.


I can see that where the columns of 1 and 3 start and finish, mouse events
are getting through and the (sub)DataGrid's rows are being highlighted on
mouseOver as well.

I guess I could create an itemRenderer for all the columns in the Adv
DataGrid but am wondering why this is happening. Is something else being set
on the AdvDataGrid to let the mouse events through when using a custom
itemRenderer? Is there a property I can set instead?


Thanks,
Nick


RE: [flexcoders] Data Grid as itemRenderer not getting mouse events

2009-10-07 Thread Alex Harui
Maybe try DG in DG just to see if it also blocks events.  Then we'll know where 
to start looking.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Nick Middleweek
Sent: Wednesday, October 07, 2009 5:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data Grid as itemRenderer not getting mouse events



Hello,

I have an Adv Data Grid and Column 1's itemRenderer is set to an MXML component 
that has a DataGrid in it.

This (sub) DataGrid is shown when a button is clicked in another column. Works 
great, but...

I'm trying to resize the columns of the sub DataGrid but the mouse events don't 
seem to be getting through... Except for in Column 1 of the main Adv DataGrid 
and also column 3 which has a custom itemRenderer set for that column.

The (sub) DataGrid has resizableColumns=true.


I can see that where the columns of 1 and 3 start and finish, mouse events are 
getting through and the (sub)DataGrid's rows are being highlighted on mouseOver 
as well.

I guess I could create an itemRenderer for all the columns in the Adv DataGrid 
but am wondering why this is happening. Is something else being set on the 
AdvDataGrid to let the mouse events through when using a custom itemRenderer? 
Is there a property I can set instead?


Thanks,
Nick