PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: flexphp on June 09, 2008, 02:32:03



Title: Cyclic update for datagrid or TileList
Post by: flexphp on June 09, 2008, 02:32:03
Hi all,

For a real time monitor, I need some update of some values, but NOT all, from a list of data.
My Proxy is taking care of keeping data up to date.

How do I make my display list to be updated?

Does my mediator reload ALL the data whether it was updated or not, or... what????

Many thanks for your help.

Best regards from France,
Patrick


Title: Re: Cyclic update for datagrid or TileList
Post by: puremvc on June 10, 2008, 06:31:47
If you have th proxy managing an array collection then you can just hablve the mediator set a reference to it as the dataprovider for your datagrid or tilelist and updates to the view control will be handled automagically by flex when the data in the collection changes.

As for the 'some but not all' clause to your post, that depends on whether you mean you don't need all the columns or all of the rows of your data.
If its rows, the have your proxy set a filter on the arraycollection. If its columns you don't want, have the datagrid only show the columns you want by defining datagridcolumn objects for the desired columns.

-=Cliff>