Search code examples
apache-flexflex4dataprovider

Flex 4 -- Call function when dataprovider changes


How can I set a function to be called when the length of a DataProvider changes?


Solution

  • Here is a good solution using the event "CollectionEvent.COLLECTION_CHANGE" :

    http://blog.flexexamples.com/2008/12/16/detecting-when-the-data-provider-of-a-datagrid-control-changes-in-flex/