> The actual working solution involved the assembling of a
> PropertyChangeEvent into a CollectionEvent and dispatching that to the
> source dataProvider ArrayCollection.

It may work, but it doesn't sound to me like anything you should ever
have to do to get a DataGrid to work properly.
 
Can you please explain exactly what kind of data provider and data items
you have, and what kind of change you're making to them that isn't
getting shown in the DataGrid? For example:
 
Is your data provider an ArrayCollection or something else?
 
Are the data items plain Objects or instances of classes?
 
Are you changing fields inside an item? Or replacing entire items?
 
Gordon Smith
Adobe Flex SDK Team
 
________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of mr_j_harris
Sent: Tuesday, February 12, 2008 11:03 AM
To: [email protected]
Subject: [flexcoders] Re: How can I FORCE a REDRAW of a DATAGRID
(resolved)




Hi all, thanks for all your attention and suggestions.
Sorry to say, some of them were a bit loopy: for example,
the wholesale substitution of a 'cloned' dataProvider.

I had the help of a highly skilled Flex developer who is also is a
group member here, and he provided the proper stuff.

In brief, it's an 'old-school' attitude to 'force' stuff in a
message-passing (event dispatching) environment, and that wouldn't be
the way to do it.

The actual working solution involved the assembling of a
PropertyChangeEvent into a CollectionEvent and dispatching that to the
source dataProvider ArrayCollection.

Thanks Ryan!

-- wipes brow --

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Tuesday 12 Feb 2008, mr_j_harris wrote:
> > well not so fast, mx:columns is not recognized after I swap
> > mx:DataGrid for
> > utilities:ADDataGrid
> 
> Is ADDataGrid a sub class of DataGrid ? And you mean you can't use
mx:Columns 
> in MXML when using the sub class ?
> Try utilities:columns instead.
> 
> -- 
> Tom Chiverton
> Helping to conveniently create next-generation materials
> on: http://thefalken.livejournal.com
<http://thefalken.livejournal.com> 
> 
> ****************************************************
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP. Regulated by The
Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>



 

Reply via email to