Ha, well we wouldn't want the inmates running the asylum.  Props to Amy
too.

-TH

--- In [email protected], "Greg Morphis" <[EMAIL PROTECTED]> wrote:
>
> Tim, you nailed it..
> so set data keeps running until datagrid is full?
> I have to read up on this tonight.. but you saved my sanity! Thanks!
>
> On Mon, Oct 6, 2008 at 4:39 PM, Tim Hoff [EMAIL PROTECTED] wrote:
> > data is probably null the first time that updateDisplayList is
called. You
> > can either put your conditional logic in the commitProperties() or
set
> > data() methods.
> >
> > Override public function set data( value : Object ) : void
> > {
> > if (value != null)
> > {
> > super.data = value;
> > this.text = data.myField; // might want to debug this line to
> > see the data
> > {
> > }
> >
> > -TH
> >
> > --- In [email protected], "Greg Morphis" gmorphis@ wrote:
> >>
> >> I changed the PriceLabel.as file to this..
> >>
> >> package com.renderers {
> >> import mx.controls.Label;
> >> import mx.controls.listClasses.*;
> >> import mx.controls.Alert;
> >>
> >> public class PriceLabel extends Label {
> >>
> >> override public function set data( value : Object ) : void
> >> {
> >> if (value != null) super.data = value;
> >> }
> >>
> >>
> >> override protected function
> >> updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
> >> //super.updateDisplayList(unscaledWidth, unscaledHeight);
> >> //Alert.show(data.toString());
> >>
> >>
> >> }
> >> }
> >> }
> >>
> >>
> >> I added a breakpoint after the commented out alert and still
this.data
> >> shows null...
> >> Any other ideas? I'm out of them
> >>
> >>
> >> On Mon, Oct 6, 2008 at 4:23 PM, Greg Morphis gmorphis@ wrote:
> >> > What do you mean?
> >> > The collection shows in the dataGrid just fine, it's the custom
> >> > itemRenderer that isn't working?
> >> > Is there something else I can provide to check this?
> >> >
> >> > Thanks
> >> >
> >> > On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff TimHoff@ wrote:
> >> >>
> >> >> Correct. Perhaps the collection isn't bound to the dataProvider
> >> >> correctly.
> >> >>
> >> >> -TH
> >> >>
> >> >> --- In [email protected], "Amy" amyblankenship@ wrote:
> >> >>>
> >> >>> --- In [email protected], "Tim Hoff" TimHoff@ wrote:
> >> >>> >
> >> >>> >
> >> >>> > You might try adding this Greg:
> >> >>> >
> >> >>> > override public function set data( value : Object ) : void
> >> >>> > {
> >> >>> > if (value != null) super.data = value;
> >> >>> > }
> >> >>> >
> >> >>> > The data property will be null until the service call has
returned
> >> >> and
> >> >>> > populated the collection.
> >> >>>
> >> >>> Label already implements IDropInListItemRenderer and
IDataRenderer.
> >> >>> Presumably correctly...
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> ------------------------------------
> >> >>
> >> >> --
> >> >> Flexcoders Mailing List
> >> >> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> >> Alternative FAQ location:
> >> >>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
> >> >> Search Archives:
> >> >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups Links
> >> >>
> >> >>
> >> >>
> >> >>
> >> >
> >>
> >
> >
>



Reply via email to