Flex 4 中带有自定义 HeaderRenderer 的数据网格

发布于 2024-09-25 18:34:30 字数 111 浏览 0 评论 0原文

我的 Flex 应用程序中有一个数据网格,并且我正在使用自定义 HeaderRender。此 HeaderRender 有一个复选框。如何从 HeaderRender 外部控制复选框?

谢谢!

I have a datagrid in my Flex App, and I;m uisng a custom HeaderRender. This HeaderRender has a checkbox. How can I control the checkbox from outside the HeaderRender?

thanks!

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

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

发布评论

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

评论(1

我要还你自由 2024-10-02 18:34:30

好吧,这并不理想,但您可以从标头渲染中分派自定义事件,并将冒泡设置为 true。这将允许您捕获事件并使用 event.target 引用渲染器。

如果您正在寻找“理想”的解决方案,还有其他方法可以使用更多代码(以及一些扩展)来实现此目的。

Well it's not ideal, but you can dispatch a custom event from your header render with bubbling set to true. This will allow you to capture the event and reference the renderer with event.target.

There are other ways to do this using a lot more code (and a bit of extending) if you're looking for an "ideal" solution.

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