flex:无法使用覆盖设置数据方法编辑数据网格中的项目

发布于 2024-08-24 11:54:15 字数 255 浏览 4 评论 0原文

我的数据网格有一个自定义 itemRenderer。要设置实际数据,我使用以下方法:

override public function set data(side:Object):void{
   ...
}

一旦我使用此功能,单元格就不再显示任何项目编辑器。这是为什么?当我删除此函数时,itemEditor 正在工作,但初始化数据错误......

处理此问题的正确方法是什么?

谢谢, 马库斯

I've a custom itemRenderer for my datagrid. To set the actual data I use the following method:

override public function set data(side:Object):void{
   ...
}

As soon as I use this function the cell doesn't show up any item Editor anymore. Why is that? When I remove this function the itemEditor is working but with the wrong initialization data...

What's the proper way to handle this?

Thanks,
Markus

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

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

发布评论

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

评论(2

dawn曙光 2024-08-31 11:54:15

你在那个方法上调用过“Super”吗?

Have u called 'Super' on that method ?

莫相离 2024-08-31 11:54:15

确保您还有一个正常工作的 itemEditor,或者将 rendererIsEditor 属性设置为 true 并使用渲染器作为编辑器。

Make sure that you also have an itemEditor that is correctly working or that you set the rendererIsEditor property to true and use the renderer as the editor.

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