what is the difference between invalidateList and invalidateDisplayList?

前端 未结 2 1544
再見小時候
再見小時候 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条回答
  • invalidateList tells the component that the data has changed, and it needs to reload it and re-render it.

    invalidateDisplayList tells the component that it needs to redraw itself (but not necessarily reload its data).

    0 讨论(0)
  • 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()

    0 讨论(0)
提交回复
热议问题