无效列表();在flex3.0中
请告诉我什么是 invalidateList();功能有吗?
我有一行代码,其中在 arraycollection 对象上调用此函数,
如
dg.invalidateList();
其中 dg 是 datagrid 的 id,该 dg 的 dataprovider 是颜色,它是一个数组集合? 请告诉我 invalidateList() 函数是做什么的? 谢谢
please tell me what invalidateList(); function does?
i have one line of code, in which this function is getting called on arraycollection object
like
dg.invalidateList();
where dg is the id of datagrid, dataprovider for this dg is colors which is an arraycollection??
plzz tell me wht the invalidateList() function is doin?
thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我愿意打赌,无论是谁写的,都试图在底层 arrayCollection 以某种方式更新后刷新数据网格。更好的方法是在更新后在 arrayCollection 上调度 CollectionChange 事件。
例子:
I would be willing to bet that whoever wrote that was trying to get the datagrid to refresh after the underlying arrayCollection was updated somehow. The better way of doing this is to dispatch a CollectionChange event on the arrayCollection after the update is made.
Example:
请参阅此 StackOverflow 辩论:
invalidateList 和 invalidateDisplayList 之间有什么区别?< /a>
在我看来一切都在那里解释了:)
拉季斯拉夫
Refer to this StackOverflow debate:
what is the difference between invalidateList and invalidateDisplayList?
Seems to me everything was explained there :)
Ladislav