How do I get a Flex AdvancedDatagrid to display just one row?

本秂侑毒 提交于 2020-01-16 05:16:05

问题


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.


回答1:


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."




回答2:


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

rty




回答3:


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



来源:https://stackoverflow.com/questions/1231732/how-do-i-get-a-flex-advanceddatagrid-to-display-just-one-row

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!