[flexcoders] Unable to set ItemRenderer's value back to DataGrid's dataProvider

2006-12-12 Thread jmorpher03

Hi,

I have a Custom ItemRenderer, which displays a TextInput or a Label
based on another column's value in the DataGrid.
Here's the sample for the ItemRenderer:

MyItemRenderer.mxml

http://www.adobe.com/2006/mxml
 ">

   




In my Main.mxml , the DataGrid is as follows :

  
  
  
  


I want to set the value which user enters in the "myTextInput" , back to
the ColB of the dataProvider.
I have tried a lot of examples, but none seem to work. Can anyone help
me with this.
I tried even by directly declaring a TextInput , rather than dynamically
adding it,
even then it does not work.

Thanks in advance.

Regards,

Asgar.







RE: [flexcoders] Unable to set ItemRenderer's value back to DataGrid's dataProvider

2006-12-13 Thread Tracy Spratt
Why not set an event listener on the TextInput, and have that set the
value?

 

What have you tried?  Why didn't it work?

 

Here is an example that uses a checkbox item renderer:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=559

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmorpher03
Sent: Tuesday, December 12, 2006 6:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Unable to set ItemRenderer's value back to
DataGrid's dataProvider

 

Hi,

I have a Custom ItemRenderer, which displays a TextInput or a Label
based on another column's value in the DataGrid. 
Here's the sample for the ItemRenderer:

MyItemRenderer.mxml

http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> ">
 
   




In my Main.mxml , the DataGrid is as follows :

 
 

 


I want to set the value which user enters in the "myTextInput" , back to
the ColB of the dataProvider.
I have tried a lot of examples, but none seem to work. Can anyone help
me with this.
I tried even by directly declaring a TextInput , rather than dynamically
adding it, 
even then it does not work.

Thanks in advance.

Regards,

Asgar.