开发者

Flex datagrid - determining when grid has completed renderering?

I have a datagrid which conta开发者_JS百科ins 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?


Try listening for FlexEvent.UPDATE_COMPLETE.


And also make sure that you are verifying the correct update complete output. because update complete will be called whenever there is change in the rendering of the grid. it is fired once when grid is created and Grid borders are formed. and once after data is populated(the one u askd for) and again whenever u adjust the header or data is updated it is fired.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜