Highlighted

How to bind data returned from fill() method with another Collection

savyasachi

04-12-2008

I have a need to convert the ArrayCollection returned by the
fill() method of my dataservice into an XMLListCollection. The
XMLListCollection is used by a DataGrid control that has
itemEditors for each column. I have an action script function that
converts ArrayCollection to XMLListCollection. I am trying to find
a way to throw an event that calls the action script function
whenever fill() method refreshes the ArrayCollection (basically
whenever data in the data gets changed).



Thanks in advance.

Replies

Highlighted

Zee_Yang

07-12-2008

<mx:DataService /> generates a "message" event when
there's a fill update. Alternatively, ArrayCollection also
generates a "collecitonChange" event when it's changed.



Just out of curiosity, is there a reason you are not binding
the managed ArrayCollection directly to the data grid?