开发者

Initiating Flex DataGrid rendering

开发者 https://www.devze.com 2023-02-21 12:44 出处:网络
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

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()

0

精彩评论

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