R – Flex datagrid – determining when grid has completed renderering

apache-flexdatagridevents

I have a datagrid which contains a number of itemrenderers, it is populated each time a user does a search. Is there an event which can tell me when the datagrid has completed rendering all new rows and item renderers?

I need to trigger an event once everything has been created so that I can resize then container which holds the grid.

Currently I'm using DataGridEvent.HEADER_RELEASE and CollectionEvent.COLLECTION_CHANGE events to manage this however the problem with these events is that they get called as each new row is being added to the datagrid. therefore the whole process is becoming sluggish.

Does anyone have any suggestions?

Best Answer

Try listening for FlexEvent.UPDATE_COMPLETE.

Related Topic