Flex Datagrid 实战 [数据绑定、单击显示、分页]

引言: 以下有部分内容来自网上, 这个实例中是将多种不同的应用结合在一起, 实现一个比较完整的操作

Flex 页面:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml" layout="absolute"
     creationComplete="initApp()"><!-- 发送HTTPService请求-->
    
     <!--单击Datagrid中的一条记录时跳转的状态-->
    <mx:states>
        <mx:State name="itemInfo">
            <mx:RemoveChild target="{dg}"/>
            <mx:RemoveChild target="{fPage}"/>
            <mx:RemoveChild target="{txt}"/>
            <mx:RemoveChild target="{nPage}"/>
            <mx:RemoveChild target="{lPage}"/>
            <mx:RemoveChild target="{pPage}"/>
            <mx:AddChild relativeTo="{panel}" position="lastChild">
                <mx:Label x="49" y="48" text="Username:" color="#682F91"/>
            </mx:AddChild>
            <mx:AddChild relativeTo="{panel}" position="lastChild">
                <mx:Label x="177" y="52" width="146" id="itemName" color="#6E4789"/>
            </mx:AddChild>
            <mx:AddChild relativeTo="{panel}" position="lastChild">
                <mx:Label x="49" y="102" text="Password:" color="#35184A"/>
            </mx:AddChild>
            <mx:AddChild relativeTo="{panel}" position="lastChild">
                <mx:Label x="177" y="102" width="146" id="itemPass" color="#4B1F6A"/>
            </mx:AddChild>
        </mx:State>
    </mx:states>
   
    <mx:Script >
        <![CDATA[
            import mx.collections.XMLListCollection;
            import mx.collections.ArrayCollection;
            import mx.rpc.events.ResultEvent;
            import mx.controls.Alert;
           
            [Bindable]
            //自定义分页数据

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值