The DG only supports one popup editor at a time.  I think you will have to have 
the other renderers change their look and set rendererIsEditor on them.

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

From: [email protected] [mailto:[email protected]] On Behalf 
Of taude1
Sent: Wednesday, September 23, 2009 8:38 AM
To: [email protected]
Subject: [flexcoders] DataGrid ItemEditor help



Hi All,
I've been working with DataGrid itemEditors with a custom checkbox column. It's 
been challenging, to say the least. I'm at the point where I'm getting ready to 
scrap the itemEditor infrastructure and just code itemRenderers that can 
display edit components. It might be easier.

I'm hoping some of you will have random tidbits around the web that I can read, 
or suggested workarounds.

1st issue) When I check a checkbox on the row, I'm wishing for all the 
ItemEditors on that row to show in edit mode.

2) When user checks a checkbox, I want to set data values on the item editors 
to default values.

3) When rendering the screen and loading up items that were selected before 
(via checkbox), I want to set the item editors to contain the default bound 
data.

4) When unchecking a checkbox in the row, I wish to remove all set values.

I'm using a variation of Alex H's CheckBoxDataGrid with CheckBoxItemRenderer 
for the checkbox portion of the row.

I've judiciously used a lot of the itemEditor events, like itemEditBegining, 
etc...

But I'm still having all sorts of state problems and annoying inconsistencies.

Should I bail on itemEditors and just write a custom fancy itemRenderer that 
can display edit fields at my whim? Are there any good tutorials out there for 
doing fancy bindings with ItemEditors? (I've read through all the docs at the 
adobe site.)

Thanks

Reply via email to