I would 'bind' the editable of the TextInput to the datagridcolumn's
editable flag
 
<mx:Component>
<mx:TextInput dataChange="editable = listData.column.editable" >
    

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Friday, September 07, 2007 9:43 AM
To: [email protected]
Subject: [flexcoders] Re: Editable DataGridColumn with itemRenderer



--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You can click in it, but the DG doesn't see that as an edit session.
> Most folks will set editable=false on the TextInput or use
> DataGridItemRenderer if it is never editable. Why do you want to have
> an editable field in a non editable renderer?
> 
> ________________________________

Ok, the situation is that intially the app has a datagrid for which
all the columns have itemrenderers which are textinputs. During
program flow two of the columns need to become non-editable. Normally
I would address each textinput within the required columns and set
editable=false. However, to do this I need to give the textinput an
id, in order to address it. Flex complains if I do this with: 'id
attribute is not allowed on the root tag of a component'

Any further thoughts would be much appreciated.



 

Reply via email to