如何将 Flex MXML DataGrid 变成水平 DataGrid 之类的东西? (见图片)

发布于 2024-08-26 14:00:11 字数 611 浏览 7 评论 0原文

从此(普通数据网格)

普通数据网格
(来源:narod.ru

进入此(水平数据网格)

 horisontal data grid

如何将 Flex MXML DataGrid 变成类似 Horisontal DataGrid 的东西? (Flash builder 4 可能是这样的?)

保留 DataGrid 的所有内容,例如从数据提供者中获取数据排序、拖放项目等

from this (normal dataGrid)

 normal data grid
(source: narod.ru)

into this (horisontal data grid)

 horisontal data grid

How to turn Flex MXML DataGrid into something like Horisontal DataGrid? (may be some how with Flash builder 4?)

Keeping all stuff DataGrid has like eating data from data provider sortind dragging - droping items etc

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

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

发布评论

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

评论(1

一口甜 2024-09-02 14:00:11

好问题。我自己也尝试过这样做。
我的建议是使用 DataGrid:
关闭标题,
并使数据网格的第一列使用 itemRenderers,其中第一列的 itemRenderer 渲染与标题相同的渐变渲染(您可以查看 DataGridHeaderBackgroundSkin.as 类以了解您需要哪种渲染代码)。

但我不确定如何突出显示每列。

谢谢,请告诉我这是否有帮助!

Good question. I have tried to do this myself.
My suggestion is to use DataGrid:
Turn off headers,
and make the first column of your datagrid use itemRenderers, where the itemRenderer for the first column renders the same gradient rendering as the headers (you can look at the DataGridHeaderBackgroundSkin.as class to see what kind of rendering code you need).

I'm not sure how to do the highlighting per column though.

Thanks, let me know if this helps!

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