The "str" is a variable! that gets passed on to the cellRenderer from
the dataprovider of the datagrid. If, the value passed on is x, I want
to set the width of the image to x%.

Anyways .. I did spend some more time on this after I made the post
... and i think I could do a labelFunction on the column and pass the
"x" with the "%" appended to it.

I do appreciate any ideas.

Thanks

--- In [email protected], Manish Jethani
<[EMAIL PROTECTED]> wrote:
> On 5/11/05, sreejithunni <[EMAIL PROTECTED]> wrote:
> 
> > <!---
> > 
> > function setValue(str:String,obj:Object) {
> >         colorBar.width = str;
> > }
> > 
> > <mx:Image id="colorBar" source="@Embed('color.gif')" />
> > 
> > -->
> > 
> > How can I set a percentage value to the width of the image.
> 
> How about this?
> 
>  colorBar.width = "100%";
> 
> I'm not sure it works.  Try.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to