Don't have time to look right now, but you may need to call
validateNow() before setting the selectedItem or use callLater to set it
later.  Row changes can cause the DG to adjust the selectedIndex and
that might be causing a conflict for you.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of jensen.axel
Sent: Monday, January 21, 2008 2:04 PM
To: [email protected]
Subject: [flexcoders] Datagrid ItemEditor ComboBox Question

 

I have a client that would like a combobox in a datagrid... simple
enough.... 

the scenario is a combobox filled with upc numbers, and when a upc
gets selected, the whole row of the datagrid gets filled out, and it
adds an empty row to the bottom of the datagrid...

It's not working the way i would think... the selectedItem of the
datagrid just isn't getting set... I've tried dispatching the change
event after setting it, but I'm not sure whats wrong here...

can anyone help me?

here is a link to the page 

http://axel.cfwebtools.com/devel/ComboDataGrid/bin/ComboDataGrid.html
<http://axel.cfwebtools.com/devel/ComboDataGrid/bin/ComboDataGrid.html> 

here is a link to the source:

http://axel.cfwebtools.com/devel/ComboDataGrid/bin/srcview/index.html
<http://axel.cfwebtools.com/devel/ComboDataGrid/bin/srcview/index.html> 

Thanks in advance.
Axel

 

Reply via email to