Actually, this is not correct.  Does it work for you?  
ArrayCollection.refresh() causes the current sort to be applied to the 
collection, it is not intended to be a generic UI refresh call.

 

Three normal ways to update a UI when the underlying data changes are:

1. Re-assign the dataProvider.  This causes the entire control to redraw.

2. Use the *Collection API* to update the dataProvider.  See the docs for these 
methods. The UI will automatically update.

3. If you make a direct assignment of a value to a dataProvider item property, 
call itemUpdated().

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
oneworld95
Sent: Tuesday, October 21, 2008 12:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: RES: [flexcoders] Refresh datagrid

 

Thanks, Luciano! Just what I needed.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
"Luciano Manerich Junior"
<[EMAIL PROTECTED]> wrote:
>
> 
> You need to refresh the dataProvider (needs to be bindable).
> 
> datagrid.dataProvider.refresh(); 
> 
> -----Mensagem original-----
> De: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ]
Em nome de oneworld95
> Enviada em: terça-feira, 21 de outubro de 2008 13:43
> Para: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Assunto: [flexcoders] Refresh datagrid
> 
> Hi. Is there a way to refresh the data in a datagrid? 
> 
> 
> ------------------------------------
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 
> Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 
<https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847>
 
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
<http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! Groups
Links
>

 

Reply via email to