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}"....>

and this didn't work.

So then I tried a bindproperty:

BindingUtils.bindProperty(txtiName,"width",colName ,"width");

and this didn't work either.

So then I used a bindsetter just for the purpose of setting a
breakpoint in the function to see if it was firing. It fires only on
init, and not when the columns are resized.

What am I doing wrong?

Reply via email to