如何让 Flex AdvancedDatagrid 仅显示一行?
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
前几天我实际上遇到了这个问题。 事实证明,我将 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."
您可以将 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
它将显示空白行,因为您必须缩短网格的大小
It will show blank rows for that you have to shorten the size of the grid