Ok, bad news. I had been runningon my
own internal build which has had some updates to it. It worked there. I ran
it on an official 1.5 build, it had the bug. So it’s clearly a bug. Don’t
have a workaround for you, sorry!
Matt
From: Jeff Tapper
[mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005
4:53 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oddities
with binding columns of a DataGridColum in width in a repeater.
Its definitely 15. One of the lines in the jrun console is: INFO
License
Service: Flex 1.5 Developer Edition enabled
When you ran the 2nd example did the 2 gridshave
their columns spaced like
the one in the first example? Attachedis a
screenshot of what i see.
1.5 At 11:41 PM 2/3/2005, you wrote:
>So I ran your examples it looked right to
me. I seem to remember that we
>had a problem with binding into arrays in
repeaters in 1.0, is it possible
>you're not using a 1.5 install?
>
>Matt
>
>
>----------
>From: Jeff Tapper [mailto:[EMAIL PROTECTED]
>Sent: Thursday, February 03, 2005 3:43 PM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] Oddities with binding
columns of a DataGridColumn
>width in a repeater.
>
>Ok, heres an odd one.
>
>Normally, I can use bindings to specify widths
of DataGridColumns (a trick
>i use to set a % width), like so:
>
><mx:Application
>xmlns:mx="<http://www.macromedia.com/2003/mxml>http://www.macromedia.com/2003/mxml">
>
<mx:Model id="sizes">
>
<size1>{this.width*.28}</size1>
>
<size2>{this.width*.08}</size2>
>
</mx:Model>
>
<mx:DataGrid id="dg" >
>
<mx:columns>
>
<mx:Array>
>
<mx:DataGridColumn textAlign="left"
>columnName="name"
width="{sizes.size1}" />
>
<mx:DataGridColumn textAlign="right"
>columnName="city"
width="{sizes.size1}"/>
>
<mx:DataGridColumn textAlign="right"
>columnName="state"
width="{sizes.size1}"/>
>
<mx:DataGridColumn textAlign="right"
>columnName="zip"
width="{sizes.size2}"/>
>
</mx:Array>
>
</mx:columns>
>
</mx:DataGrid>
></mx:Application>
>
>however, if the datagrid appears in a
repeater, it suddenly stops working.
>
><mx:Application
>xmlns:mx="<http://www.macromedia.com/2003/mxml>http://www.macromedia.com/2003/mxml">
>
<mx:Model id="sizes">
>
<size1>{this.width*.28}</size1>
>
<size2>{this.width*.08}</size2>
>
</mx:Model>
>
<mx:Model id="x2">
>
<one></one>
>
<one></one>
>
>
</mx:Model>
>
<mx:Repeater dataProvider="{x2.one}">
>
<mx:DataGrid id="dg" >
>
<mx:columns>
>
<mx:Array>
>
<mx:DataGridColumn textAlign="left"
>columnName="name" width="{sizes.size1}"
/>
>
<mx:DataGridColumn textAlign="right"
>columnName="city"
width="{sizes.size1}"/>
>
<mx:DataGridColumn textAlign="right"
>columnName="state"
width="{sizes.size1}"/>
>
<mx:DataGridColumn textAlign="right"
>columnName="zip"
width="{sizes.size2}"/>
>
</mx:Array>
>
</mx:columns>
>
</mx:DataGrid>
>
</mx:Repeater>
></mx:Application>
>
>I'm not looking for a debate on the merits of
looping over datagrids, but
>am puzzled by this odd break in
behavior. I thought perhaps I was losing
>scope while in the repeater, but that doesnt
seem to be the case, as if i
>add
width="{sizes.size1*3+sizes.size2}" to the DataGrid itself, thegrid
is
>sized to the right width, but the columns are
all equally spaced.
>
>Anyone know whats going on here?
>
>At 10:18 AM 11/27/2004, you wrote:
> >We do have the request in our system
already.
> >
> >-----Original Message-----
> >From: Mitch Aunger
[mailto:[EMAIL PROTECTED]
> >Sent: Thursday, November 25, 2004 8:32 AM
> >To: flexcoders@yahoogroups.com
> >Subject: [flexcoders] DataGridColumn
resize width request (was: Question
> >on heightTo property of mx.effects.
Resize)
> >
> >Is there an open request to add support
for percentage values on the
> >column widths for the DataGrid as well?
> >
> >Ex of what I'd like to see:
> ><mx:DataGridColumn
columnName="NUMBER" headerText="Order"
width="10%" />
> >
> >Tho that currently throws an error:
> >Error /gcc/gccAppDemoOrders.mxml:10
> >Type mismatch in assignment statement:
found String where Number is
> required.
> >
> >I really really really would like to be
able to set widths for
> >DataGridColumns as percentages PLEASE? It
would seem to be very
> >important to me to be able to have the
DataGrid be FLEXible in size
> >via percentages and have the
DataGridColumns grow and shrink by %ages
> >too :)
> >
> >Any other votes?
> >
> >Thanks
> >
> >Mitch
> >
> >The "World's Finest" Candles!
> >Strongest scent on the market
> ><<http://www.showmescents.com/>http://www.showmescents.com/>http://www.sh
> owmescents.com/
> >
> >Independent Distributor for Gold Canyon
Candles
> >
> >On Wed, 24 Nov 2004 11:49:30 -0800,Jason Szeto <[EMAIL PROTECTED]>
> wrote:
> > >
> > >
> > >
> > > The resize effect does not support
percent based values. However,
> this is a
> > > good enhancement request. I'll add
it to our list.
> > >
> > >
> > >
> > > Jason
> > >
> >
> >
> >
> >Yahoo! Groups Sponsor
> >ADVERTISEMENT
> ><<http://us.ard.yahoo.com/SIG=129hob5va/M=298184.5639630.6699735.3001176/
>
D=groups/S=1705007207:HM/EXP=1101655102/A=2434970/R=0/SIG=11edksnhv/*http:/www.netflix.com/Default?mqso=60185402>http://us.ard.yahoo.com/SIG=129hob5va/M=298184.5639630.6699735.3001176/D=groups/S=1705007207:HM/EXP=1101655102/A=2434970/R=0/SIG=11edksnhv/*http://www.netflix.com/Default?mqso=60185402>
> >click here
> >
> >
> >
> >----------
> >Yahoo! Groups Links
> > * To visit your group
on the web, go to:
> > *
> >
> <<http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/
>
> >
> > *
> > * To unsubscribefrom
this group, send an email to:
> > *
> >
>
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
>
> >
> > *
> > * Your use of Yahoo!
Groups is subject to the
> >
> <<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>Yahoo!
> Terms of Service.
>
>
>
>
>----------
>Yahoo! Groups Links
> * To visit your groupon
the web, go to:
> *
> <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/
>
> *
> * To unsubscribe fromthis
group, send an email to:
> *
>
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
>
> *
> * Your use of Yahoo! Groups
is subject to the
> <http://docs.yahoo.com/info/terms/>Yahoo!
Terms of Service.