I think that's a known bug.  I would addEventListeners to the DG for 
updateComplete and columnResize and update the TI widths then.

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy
Sent: Wednesday, October 29, 2008 5:43 PM
To: [email protected]
Subject: [flexcoders] Re: Binding textinput width to datagrid column width?


--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, 
"biosmonkey" <[EMAIL PROTECTED]>
wrote:
>
> I must be doing something dumb, but I can't understand why this
isn't
> working.
>
> I have a datagrid with say, 2 columns. Under the datagrid, I have
two
> text input controls next to each other in an hbox.
>
> I want the text input controls to match the width of the datagrid
> columns directly above them. This means when the datagrid is drawn
and
> the column widths determined, the textinput controls should resize
> themselves to match. This also should occur if the user resizes the
> columns manually.
>
> So, I assigned IDs to the datagridcolumn objects, and tried to bind
> the width of the text input controls to them.
>
> So first I tried
> <mx:TextInput width="{colName.width}"....>

Try something like <mx:TextInput width="100%"/>

Reply via email to