Re: [flexcoders] Combobox in a Datagrid not retaining values

2010-02-24 Thread Alex Harui
I assume your editorDataField is really cmbValue.

I don’t know what your data looks like, but you probably don’t want to use 
Binding in the renderer.  When the data is set, you want to set cmbValue to 
whatever value is currently in the dataField for that data item.  Then only 
change it when the combobox sends out a change event.


On 2/24/10 11:41 AM, "md_ars"  wrote:






Hello,

I have following piece of code from main mxml and below that I have
component code for Combobox. I am using label function to decode values as 
Yes/No when populating Data Grid from the database. It wipe the value from the 
cell once I click on the combobox and don't select values from it. I used 
prompt in combobox which works to avoid blank but it change the values to 
prompt.

I tried many examples but didn't work for me. Please help. Also I want to use 
Item Renderer instead if Item Editor.

Thanks
Arshad

main.mxml
-
[Bindable] private var queryData:ArrayCollection = new ArrayCollection();
--
--

--
-



-yesNoComboBox --
http://www.adobe.com/2006/mxml";
implements="mx.controls.listClasses.IDropInListItemRenderer,mx.managers.IFocusManagerComponent">


 
 
 

 
 
 Yes
 No
 
 







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Combobox in a Datagrid

2006-06-21 Thread Shannon Hicks





You're in need of a custom Item Renderer (and/or Item 
Editor)
 
http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=Part2_DevApps.html
 
Shan


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
wi1df1owerSent: Wednesday, June 21, 2006 3:40 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Combobox in a 
Datagrid


I know someone out there has done this...for the life of me i cantseem to 
find any documentation, or an example of how it is done.Can someone out 
there direct me to an example or docs on how to put acombobox in a datagrid. 
The only codicil is that the combobox musttake the value of the of the 
datagrid dataprovider for that field asthe selected 
value.Anyone?Thanks in advance for your 
helpVida
--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.9.2/370 - Release Date: 
6/20/2006
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/370 - Release Date: 6/20/2006
 


RE: [flexcoders] Combobox in a Datagrid

2006-06-21 Thread Tracy Spratt










What version of Flex?

 

Check out www.cflex.net
for many examples for both versions.

 

Tracy

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wi1df1ower
Sent: Wednesday, June 21, 2006
4:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combobox in
a Datagrid



 







I know someone out there has done this...for the life
of me i cant
seem to find any documentation, or an example of how it is done.

Can someone out there direct me to an example or docs on how to put a
combobox in a datagrid. The only codicil is that the combobox must
take the value of the of the datagrid dataprovider for that field as
the selected value.

Anyone?

Thanks in advance for your help

Vida






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___