【问题标题】:Flex ByteArray data fieldFlex ByteArray 数据字段
【发布时间】:2010-03-25 19:06:37
【问题描述】:

我的数据网格的数据提供程序 (ArrayCollection) 由具有 ByteArray (int) 字段的对象组成。如何在不转换数据提供者的情况下使数据字段显示为 int?

【问题讨论】:

    标签: apache-flex datagrid bytearray


    【解决方案1】:

    不太确定,但为了在数据网格中显示类似的内容,我会这样做:

    <mx:itemRenderer>
        <mx:Component>
            <mx:Label 
                text="{ ( data.yourByteArray.toString()) }" 
                textDecoration="none" <!-- other props -->
            />
        </mx:Component>
    </mx:itemRenderer>
    

    【讨论】:

      猜你喜欢
      • 2013-01-06
      • 1970-01-01
      • 2011-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多