Flex 数据网格中的按钮

发布于 2024-08-31 18:01:51 字数 192 浏览 1 评论 0原文

我在 Flex 中使用数据网格,并从 mysql 服务器生成数据。但是,我的问题是在数据网格中添加一个按钮,以便每一行都有一个按钮。

我已将列 itemRenderer 设置为 mx.controls.Button,尽管网格中显示的按钮上没有标签(即使已设置标签),并且按下按钮时不会触发指定的单击事件。任何人对我做错了什么有任何想法或指导。 谢谢 标记

i am using a data grid in flex and i am generating data from a mysql server. However, my problem is with adding a button within the datagrid so each row has one.

i have set the columns itemRenderer to mx.controls.Button although with the buttons shown in the grid there is no label on them (even though one has been set) and the assigned click event does not trigger when hitting the button. anyone have any ideas or guidance on what i am doing wrong.
Thanks
Mark

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

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

发布评论

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

评论(1

初心未许 2024-09-07 18:01:51

不用担心,我已经整理好了。任何有类似问题的人我建议阅读此内容
http://www .axelscript.com/2008/02/29/using-the-itemrenderer-with-a-datagrid-in-flex/

一个很好的来源。

Not to worry I have sorted it. anyone with a similar issue i suggest reading this
http://www.axelscript.com/2008/02/29/using-the-itemrenderer-with-a-datagrid-in-flex/

an excellent source.

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