So how are you updating the dataProvider items with the checkbox state? 

 

Are you using the ArrayCollection API?  If so, then the UI will update
automatically.

 

Note: refresh() applies a sort.  It does not generically "refesh" the
UI.  Also, if you use the API, it should not be necessary to do anything
else for the list either.

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben gomez farrell
Sent: Friday, October 17, 2008 1:36 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Refreshing graphics in a tree

 

My data is an ArrayCollection is set via mytree.dataProvider = 
myArrayCollection;
I have a list as well, and when I do mylist.dataProvider.refresh(), the 
checkboxes on those update just fine.
Unfortunately doing mytree.dataProvider.refresh() doesn't work - and 
only mousing over will update the graphics of the item.
I'll look into itemUpdated though, and see how I can use it, thanks!
ben

Tracy Spratt wrote:
>
> How are you updateing the dataProvider? If you use the correct API, 
> the changes should reflect automatically. If you are using lower 
> level assignments, then you might need to call itemUpdated for 
> collections.
>
> 
>
> What is your dataprovider?
>
> 
>
> Tracy
>
> 
>
> ----------------------------------------------------------
>
> *From:* flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] 
> *On Behalf Of *ben gomez farrell
> *Sent:* Friday, October 17, 2008 12:40 PM
> *To:* flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

> *Subject:* [flexcoders] Refreshing graphics in a tree
>
> 
>
> Hey, I have a tree with a itemRenderer to have a clickable checkbox in
> it. I need to set the checkbox state sometimes through code.
> Everything works great, except the graphics of the checkbox don't
update
> when it's set through code (mousing over the node will refresh the 
> graphics)
> Is there a way to refresh the graphics of all the nodes through some
> method of the tree? I CAN open and close the nodes to refresh the
> graphics, but it seems really silly, and I have to track whats open
and
> closed and make sure it gets back to the same state again.
>
> Thanks!
> ben
>
> 

 

Reply via email to