定制 Flex Datagrid 或替代解决方案

发布于 2024-08-20 12:52:28 字数 440 浏览 4 评论 0原文

我目前正在构建一个应用程序,该应用程序呈现表格(从网络服务获取)数据并将其喷射到数据网格中 - 似乎是在屏幕上呈现它的最明显的方式。

我现在遇到了数据网格中的一些限制,并想知道我该如何前进。作为 Flex 开发的相对新手,我有点迷失。

有几件事我想做。

  1. 数据在逻辑上分为几组,我希望每当我移动到新组时都能够在网格中包含副标题。
  2. 我希望能够根据相对于行中其他值的内容突出显示各个单元格 - 即突出显示行中具有最高值的单元格。

使用标准数据网格可以实现这一点吗?

实际上,我目前正在使用先试后买版本的 Flex Builder,但我已经订购了 Flex Builder 3 Pro - 它正在发送给我。我知道这个版本中有一个“高级数据网格”控件 - 也许这会支持我想做的一些事情?

或者 - 是否有另一种构建自定义表格数据的方法?

I'm currently building an application that is presenting tabular (fetched from a webservice) data and have squirted it into a datagrid - seemed the most obvious way to present it on screen.

I've now come across a few limitations in the datagrid and wonder how I might move forward. As a relative newcomer to flex development I'm a little lost.

A few things I am wanting to do.

  1. The data is logically split into groups and I would like to be able to have subheadings in the grid whenever I move to a new group.
  2. I would like to be able to highligh individual cells based on their content relative to other values in the row - ie highlight the cell with the highest value in the row.

Is this possible with the standard datagrid?

I'm actually using the try-before-you-buy version of flex builder at the moment but I have ordered Flex Builder 3 Pro - which is on its way to me. I understand there is an 'advanced datagrid' control in this version - perhaps that will support some of what I wish to do?

Alternatively - is there another way of building custom tabular data?

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

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

发布评论

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

评论(2

只为守护你 2024-08-27 12:52:28

远离 Adob​​e 的 AdvancedDataGrid。你很快就会发现它有很多缺点,你会认为你比它更好,并在这里重写一些东西,在那里调整一些东西,但最终 ADG 绝对会毁掉你。听从我的号召,不惜一切代价避免这种情况。 ADG 被 Adob​​e 外包给了他们失败的印度团队,该团队已经被解散了,仅它就占了整个 Flex 框架的 30% 以上,而且他们的问题是可怕的根深蒂固的问题,最好从现在开始。 不惜一切代价远离高级数据网格!!!!!!

stay the hell away from Adobe's AdvancedDataGrid. You will learn quickly it has many shortcomings, you will think you are better than it and override a few things here, tweak a few things there, but in the end the ADG will absolutely destroy you. Heed my call and avoid this at all costs. The ADG was outsourced by Adobe to their failed Indian team that has sense been disbanded, it alone counts for over %30 of the entire flex framework, and their are horrible deeply rooted issues that are better off starting over at this point. STAY AWAY FROM THE ADVANCDEDDATAGRID AT ALL COSTS!!!!!

梦在深巷 2024-08-27 12:52:28

DataGrid 是最好的选择,但也请查看 AdvancedDataGrid(这里有一些来自 FarataSystems 的 AdvancedDataGrid 演示及其源代码) 。
替代文本
(来源:flexicious.com

DataGrid 和AdvancedDataGrid 是出了名的难以定制,而且您想要做的所有事情都非常高级,因此需要一段时间才能开始,但您最终可以做到。

除非您开始使用一些数据可视化库做一些高级的事情,否则没有其他方法可以构建表格数据。

祝你好运,

The DataGrid is the best bet for that, but also check out the AdvancedDataGrid (here are some AdvancedDataGrid Demos with Source from FarataSystems).
alt text
(source: flexicious.com)

Both the DataGrid and AdvancedDataGrid are notoriously hard to customize, and everything you'd like to do is pretty advanced, so it will take a while to get going, but you can do it eventually.

There's no other way to build tabular data unless you start doing some advanced things with some of the data visualization libraries out there.

Good luck,
Lance

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