Flex DataGrid labelFunction 没有被调用

发布于 2024-09-07 22:20:20 字数 167 浏览 3 评论 0原文

我有一个 DataGrid,其中一列有一个 labelFunction。当我运行该应用程序时,DataGrid 中会显示一个滚动条,指示我它有数据,但 DataGrid 中没有任何内容。当我滚动项目时开始显示。当我调试它时,我注意到 labelFunction 在我开始滚动之前从未被调用。有谁知道为什么会发生这种情况?

I have a DataGrid where one of the columns has a labelFunction. When I run the application a scrollbar shows up in the DataGrid indicating to me that it has data but there is nothing in the DataGrid. When I scroll items start showing up. When I Debugged it I noticed that the labelFunction was never being called until I started scrolling. Does anyone know why this is happening?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吻安 2024-09-14 22:20:20

如果您在设置 dataProvider 后稍后使用 ActionScript 分配 labelFunction,请尝试调用 datagrid.invalidateList()datagrid.updateList() 分配后 - 这些函数强制刷新所有行。

If you are assigning labelFunction at a later time using ActionScript after setting the dataProvider, try calling datagrid.invalidateList() or datagrid.updateList() after assigning it - these functions force a refresh of all the rows.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文