Cellrenderer did the job. Any need for me to submit a bug report?

 

-Stace

 


From: [email protected] [mailto:[email protected]] On Behalf Of Tracy Spratt
Sent: Friday, July 22, 2005 2:58 PM
To: [email protected]
Subject: RE: [flexcoders] Datagrid Oddity

 

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






--
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




Reply via email to