开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜