AdvancedDataGridEvent - 为什么事件的某些属性返回 null?

发布于 2024-09-19 17:32:39 字数 196 浏览 4 评论 0原文

AdvancedDataGrid 的另一个问题是——这一次是 AdvancedDataGridEvent。

看来在监听ITEM_EDIT_END事件时,几个事件属性都返回了null。我的 event.column、event.item 等一直为 null。

以前有人经历过这种情况吗?如果是这样,您找到解决问题的方法了吗?

谢谢!

Yet another woe with the AdvancedDataGrid - this time, with the AdvancedDataGridEvent.

It seems that when listening to the ITEM_EDIT_END event, several of the event properties are returned null. I've been getting null for event.column, event.item, etc.

Has anyone experienced this before? If so, did you find a way to resolve the issue?

Thanks!

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

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

发布评论

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

评论(2

似狗非友 2024-09-26 17:32:39

检查 AdvancedDataGrid 和 AdvancedDataGridBaseEx 后,发现正在分派的事件根本没有随列或项(以及其他几个)属性一起提供。我不确定这是否是 adobe(创建 AdvancedDataGrid 类的臭名昭著的“非 Flex 开发”团队)的疏忽,或者我拥有的 SDK 版本是否由于某种原因不完整,但这确实很烦人。

如果有人以干净和/或实用的方式重写了这组类并且愿意分享,请这样做。不幸的是,我没有时间在这个构建过程中开始意大利面条节。

任何信息/链接将不胜感激。

干杯

After inspecting AdvancedDataGrid and AdvancedDataGridBaseEx, it appears that the events being dispatched are simply not being provided with the column or item (and several other) properties. I'm not sure if this is an oversight of adobe's, the infamous "not flex dev" team who built the AdvancedDataGrid classes, or if the version of the SDK I have is incomplete for some reason, but it sure is annoying.

If anyone has rewritten this set of classes in a clean and/or functional way and cares to share, please do. Unfortunately there's no time for me to start that spaghetti-fest during this build.

Any info/links would be greatly appreciated.

Cheers

仙女山的月亮 2024-09-26 17:32:39

您是否尝试过深入研究 event.target ?例如,在 AdvancedDataGridEvent 处理程序中,您可以转到 event.target.columns[event.columnIndex] 来获取负责该事件的列。

Have you tried drilling into event.target? For example, in the AdvancedDataGridEvent handler you could go event.target.columns[event.columnIndex] to get a hold of the column responsible for the event.

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