从 Flex 3 中的 DataGrid 获取单个单元格 labelFunction 的内容

发布于 2024-08-26 03:43:05 字数 295 浏览 6 评论 0原文

这类似于这个问题 我上周问过。

我的数据网格每行填充三个电话号码。每个电话号码都是从数组中提取并使用 labelFunction 显示,而名称和描述来自 dataProvider。我对上一个问题使用了真正有用的解决方案,取得了一些成功,但无法获取实际数据。

也许我在这上面花了太多时间,但我被难住了。

This is similar to this question I asked last week.

My dataGrid is populated with three phone numbers per row. Each phone number is pulled from an array and displayed using a labelFunction, while the name and description come from the dataProvider. I used the really helpful solution to my last question with some success, but can't grab the actual data.

Maybe I've spent too much time on it but I'm stumped and stuck.

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

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

发布评论

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

评论(1

岁吢 2024-09-02 03:43:05

感谢同事的帮助,我能够使用下面的代码获取具体数据:

var x:DataGridItemRenderer = event.itemRenderer as DataGridItemRenderer;
var y:DataGridListData = x.listData as DataGridListData;
var z:String = y.label;

我希望这对某人有帮助。

I was able to get the specific data using the code below, thanks to help from a collegue:

var x:DataGridItemRenderer = event.itemRenderer as DataGridItemRenderer;
var y:DataGridListData = x.listData as DataGridListData;
var z:String = y.label;

I hope this helps someone.

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