--- Chaitu Vadlapatla <[EMAIL PROTECTED]> wrote: > Hi tracy, did you manage to find a way to do the > dataChange fire off. > > Thanks > > > > Chaitu. >
Hi Chaitu Yes, I did manage to get the dataChange to work, but I did change the code slightly. The latest Flex documentation says that one should use ArrayCollections as a dataProviders for list-based controls, rather than Arrays, and one can catch the relevant events from there (read Flex Developer's Guide on flex.org) For my grids I did the following: - added a function to be called on the grid's creationComplete event: creationComplete="initDataChange(event)" - in that function I added a collectionChange event listener: grid.addEventListener("collectionChange", collectionChangeHandler ) So when my ArrayCollection variable in the model changed, it would fire a collectionChange event, which would be captured by the DataGrid (since it was wired up to listen for it in the initDataChange function) and call the collectionChangeHandler(event) function. Hope this helps Regards Tracy ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/