what is the difference between invalidateList and invalidateDisplayList?

前端 未结 2 1555
再見小時候
再見小時候 2020-12-30 09:09

I have a DataGrid, populated with objects in an ArrayCollection. After updating one of the objects\' fields, I want the screen to update. The data source is not bindable,

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-30 09:31

    invalidateDisplayList() merely sets a flag so that updateDisplayList() can be called later during a screen update. invalidateList() is what you want.

    http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html#invalidateDisplayList()

提交回复
热议问题