如何让 Flex AdvancedDatagrid 仅显示一行?

发布于 2024-07-29 16:33:55 字数 156 浏览 4 评论 0原文

我有一个 AdvancedDatagrid,其 dataProvider 是一个 ArrayCollection,其中包含 1 行可显示的内容。

Flex 继续显示大约 6 行,最上面一行已填充,其余为空白。

我设置了 rowCount="1",但没有运气。

I have an AdvancedDatagrid, whose dataProvider is an ArrayCollection that contains 1 row of displayable stuff.

Flex continues to display about 6 rows, the top one filled, the rest blank.

I've set the rowCount="1", with no luck.

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

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

发布评论

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

评论(3

溇涏 2024-08-05 16:33:55

前几天我实际上遇到了这个问题。 事实证明,我将 AdvancedDataGrid 的高度设置为 100%,这会覆盖 rowCount 属性。 如果您查看文档 ,它表示“如果已显式设置组件的高度,则此属性可能不会产生任何效果。”

I actually ran into this issue the other day. It turns out I was setting the height of the AdvancedDataGrid to 100%, which overrides the rowCount property. If you check out the documentation, it says "If the height of the component has been explicitly set, this property might not have any effect."

若有似无的小暗淡 2024-08-05 16:33:55

您可以将 row Count 属性值设置为 2,即 rowCount="2".. 一行用于标题,另一行用于数据 ..

rty

you can set the row Count property value to 2 that is rowCount="2".. one row for the header other for the data ..

rty

紫轩蝶泪 2024-08-05 16:33:55

它将显示空白行,因为您必须缩短网格的大小

It will show blank rows for that you have to shorten the size of the grid

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