Initiating Flex DataGrid rendering
I have a DataGrid 开发者_StackOverflowwhere some number of the columns can have a labelFunction. The nature of the labelFunction result can change problematically(eg apply formatting, bypass formatting).
How do I get the DataGrid to re-render the visible items so that the labelFunction will be run again to get the new data.
I've tried the invalidateDisplayList, validateNow, and tried dispatching ResizeEvents on the DataGrid. No success.
I think Florian's comment is worth trying first but otherwise I believe invalideList will work: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/listClasses/ListBase.html#invalidateList()
精彩评论