Flex 中 AdvancedDataGrid 上 TreeColumn 的 ItemRenderer
是否可以在高级数据网格中使用渲染器来显示树列,并仍然保留层次结构功能?如果我使用渲染器提供程序,我会丢失树下拉列表的箭头。我想保留树功能并更改列的显示。(而不仅仅是文件夹图像)
<mx:AdvancedDataGridRendererProvider column="{titleCol}" depth="1"
renderer="com.something.titleColumnRenderer"/>
titleColumnRenderer:
<mx:VBox width="100%" xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Label id="titleLabel" textAlign="center" text="sometext" width="100"/></mx:VBox>
Is it possible to use a renderer for for a treecolumn in an advanceddatagrid and still keep the hierarchal functionality? If I use a renderer provider I lose the the arrow for the tree dropdown. I want to keep the tree functionality and change the display of the column.(and not just the folder image)
<mx:AdvancedDataGridRendererProvider column="{titleCol}" depth="1"
renderer="com.something.titleColumnRenderer"/>
titleColumnRenderer:
<mx:VBox width="100%" xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Label id="titleLabel" textAlign="center" text="sometext" width="100"/></mx:VBox>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是我为完成此任务所做的操作:
这是您的新类可能的样子
然后分配这个AdvancedDataGrid 的 groupItemRenderer 属性的类:
或者,在 ActionScript 中:
Here's what I did to accomplish this:
Here's what your new class might look like
And then assign this class to the groupItemRenderer property of the AdvancedDataGrid:
Or, in ActionScript: