在 Flex 3 中的 AdvancedDataGrid 上覆盖文本
当数据调用没有返回结果时,我试图将标签覆盖到 AdvancedDataGrid 上。
这是我想要完成的模型 https://i.sstatic.net/6Djga.png
我尝试遵循之前的答案:在自定义 Flex 中绘制叠加层组件,但这对我不起作用,因为 AdvancedDataGrid 不是容器(因此没有 rawChildren 属性)。
我不想与数据提供者打交道,因为该表将在许多具有不同列和标签字段的位置使用。
欢迎任何建议。
I am trying to overlay a label onto an AdvancedDataGrid when there are no results returned from a call for the data.
Here is a mockup of what I am trying to accomplish https://i.sstatic.net/6Djga.png
I tried following this previous answer: Drawing an overlay in custom flex component, but this would not work for me because an AdvancedDataGrid is not a Container (and as such does not have a rawChildren property).
I would prefer not to need to mess with the data provider, because this table will be used in many location which will have different columns and labelFields.
Any suggestions welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
举一个 Flextras 提到的简单例子:
To give a quick example as to what Flextras mentioned:
将 AdvancedDataGrid 与标签叠加层一起放入容器中。将标签放置在 DataGrid 的顶部;并根据 dataProvider 的长度更改其可见性。
Put the AdvancedDataGrid in a container along with the label overlay. Position the label on top of the DataGrid; and change it's visibility based on the dataProvider's length.