Place the code in creationComplete event-handler of
DataGrid. I think, it would work.
-abdul
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aldo Bucchi
Sent: Friday, January 20, 2006 4:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] setPropertiesAt and Cairngorm are not playing together nicely
looks like a lifecycle problem to me.
try to see if the DataGrid is already created when you try the calls that fail.
note that if the DG is inside a viewstack or another container with a
creationPolicy, it might not get instantiated right away unless you
set the policy to "all"
best,
aldo
On 1/19/06, rhoska <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I�m having a bit of trouble getting setPropertiesAt to work as needed
> in the Cairngorm framework. I need to be able to alter the background
> colors of a datagrid as it loads.
>
> I have placed the testDG.setPropertiesAt(2,
> {backgroundColor:0xFF0000}); code in all the likely places and still
> have not managed to get the result I am looking for. If I associate
> the setPropertiesAt with a button or a cellEdit event it works like a
> charm.
>
> How can I use the setPropertiesAt feature as the page loads?
>
> Thanks in advance!
> ~Richard
>
>
>
>
>
> --
> 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
>
>
>
>
>
>
>
--
::::: Aldo Bucchi :::::
mobile (56) 8 429 8300
--
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
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
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.