Yes, that makes sense.  As I understand it, if the built-in cell
renderer renderers a cell when the data is an empty string (or maybe
undefined), the label field that is used to display the value does not
get its width set correctly.  And apparently the rollover and edit
actions use a different display mechanism, one that does not have the
length issue.

I would expect a custom renderer to overcome this issue though.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Laing
Sent: Friday, July 22, 2005 12:29 PM
To: [email protected]
Subject: Re: [flexcoders] Datagrid Oddity

I've had this happen with cell renderers as well (not using FP8). My
issue stemed from the fact that the DataGrid was being created before
the dataProvider was populated. When the dataProvider is populated,
the setValue function of each cell renderer is not called. Only when
the user scrolls over the cell is setValue called and the appropriate
data shown.

In my case, I solved the issue by making sure that the DataGrid wasn't
created until after the model was populated. You might have some other
options (e.g. calling setValue for all the cell renderers
programmatically on the modelChanged event), but my solution was the
simplest for my situation.

Hope that helps,
Jim

On 7/22/05, Stacy Young <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> I've got a column that's using a labelFunction to format a date. When
the
> grid initially populates the dates don't show...they only appear when
the
> rollover occurs on each row in the datagrid. Running FP8 public beta. 
> 
>   
> 
> -Stace 
> 
>  --
>  Flexcoders Mailing List
>  FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
>  
> 
>  
>  SPONSORED LINKS 
>  Computer software testing Macromedia flex Development 
>  Software developer 
>  
>  ________________________________
>  YAHOO! GROUPS LINKS 
>  
>  
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  
>  ________________________________
>


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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