`
schy_hqh
  • 浏览: 558128 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

(十二)AdvancedDataGrid

 
阅读更多
AdvancedDataGrid扩展了普通的DataGrid,功能更强大
设置AdvancedDataGrid的样式
   关注特别的行、列或单元。常见用法:将负数显示为红色
   AdvancedDataGrid允许编写并调用样式函数以实现上述功能

1.使用styleFunction属性,指定一个函数,该函数返回一个样式规则
2.数据分组(使用标签或者ActionScript来实现),实际上是对dataProvider进行操作
3.提供摘要信息(使用标签或者ActionScript来实现),实际是对各分组数据的操作
(GroupingCollection2类描述的数据才能显示摘要信息)

1.AdvancedDataGrid排序功能
下面的代码执行后,将会呈现一个可滚动列表
用户点击标题可以设置第一排序,第二排序字段
排序功能由AdvancedDataGrid底层提供
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx" >

	<s:layout>
		<s:VerticalLayout paddingTop="10"
						  horizontalAlign="center"/>
	</s:layout>

	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
	
			private var arrayData:Array=[
				{name:"banana",cat:"fruit",cost:.99,qty:2},
				{name:"bread",cat:"bakery",cost:1.99,qty:3},
				{name:"cheddar cheese",cat:"dairy",cost:4.52,qty:6},
				{name:"sour cream",cat:"dairy",cost:.33,qty:2},
				{name:"orange",cat:"fruit",cost:.52,qty:4},
				{name:"donut",cat:"bakery",cost:.33,qty:2},
				{name:"yogurt",cat:"dairy",cost:.99,qty:5},
				{name:"milk",cat:"dairy",cost:2.99,qty:2},
				{name:"apple",cat:"fruit",cost:1.05,qty:4},
				{name:"colby cheese",cat:"dairy",cost:3.05,qty:4}];
	
			[Bindable]
			private var dp:ArrayCollection=new ArrayCollection(arrayData);
		]]>
	</fx:Script>

	<mx:AdvancedDataGrid dataProvider="{dp}"
		height="250"/>

</s:Application>


sortExpertMode="true"
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx" >

	<s:layout>
		<s:VerticalLayout paddingTop="10"
						  horizontalAlign="center"/>
	</s:layout>

	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
	
			private var arrayData:Array=[
				{name:"banana",cat:"fruit",cost:.99,qty:2},
				{name:"bread",cat:"bakery",cost:1.99,qty:3},
				{name:"cheddar cheese",cat:"dairy",cost:4.52,qty:6},
				{name:"sour cream",cat:"dairy",cost:.33,qty:2},
				{name:"orange",cat:"fruit",cost:.52,qty:4},
				{name:"donut",cat:"bakery",cost:.33,qty:2},
				{name:"yogurt",cat:"dairy",cost:.99,qty:5},
				{name:"milk",cat:"dairy",cost:2.99,qty:2},
				{name:"apple",cat:"fruit",cost:1.05,qty:4},
				{name:"colby cheese",cat:"dairy",cost:3.05,qty:4}];
	
			[Bindable]
			private var dp:ArrayCollection=new ArrayCollection(arrayData);
		]]>
	</fx:Script>
	
	<!-- 当指定sortExpertMode="true" 多排序区域将不会出现 
	     在此模式下若要进行多排序,需要使用ctrl再单击另外的排序列的标题区域-->
	<mx:AdvancedDataGrid dataProvider="{dp}"
		sortExpertMode="true"
		height="250"/>

</s:Application>


使用LabelFunction指定样式规则,通过函数返回样式
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx" >

	<s:layout>
		<s:VerticalLayout paddingTop="10"
						  horizontalAlign="center"/>
	</s:layout>

	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
	
			private var arrayData:Array=[
				{name:"banana",cat:"fruit",cost:.99,qty:2},
				{name:"bread",cat:"bakery",cost:1.99,qty:3},
				{name:"cheddar cheese",cat:"dairy",cost:4.52,qty:6},
				{name:"sour cream",cat:"dairy",cost:.33,qty:2},
				{name:"orange",cat:"fruit",cost:.52,qty:4},
				{name:"donut",cat:"bakery",cost:.33,qty:2},
				{name:"yogurt",cat:"dairy",cost:.99,qty:5},
				{name:"milk",cat:"dairy",cost:2.99,qty:2},
				{name:"apple",cat:"fruit",cost:1.05,qty:4},
				{name:"colby cheese",cat:"dairy",cost:3.05,qty:4}];
	
			[Bindable]
			private var dp:ArrayCollection=new ArrayCollection(arrayData);

			public function myStyleFunc(data:Object,col:AdvancedDataGridColumn):Object
			{
				if(data["cost"]==0.99) {
					return {color:0xFF0000,fontWeight:"blod"};
				} else {
					return null;
				}
			}
		]]>
	</fx:Script>

	<mx:AdvancedDataGrid dataProvider="{dp}"
		height="250">
		<mx:columns>
			<mx:AdvancedDataGridColumn dataField="cat"/>
			<mx:AdvancedDataGridColumn dataField="name"/>
			<mx:AdvancedDataGridColumn dataField="cost" styleFunction="myStyleFunc"/> <!--styleFunction作用于局部 -->
		</mx:columns>
	</mx:AdvancedDataGrid>

</s:Application>


<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx" >

	<s:layout>
		<s:VerticalLayout paddingTop="10"
						  horizontalAlign="center"/>
	</s:layout>

	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
	
			private var arrayData:Array=[
				{name:"banana",cat:"fruit",cost:.99,qty:2},
				{name:"bread",cat:"bakery",cost:1.99,qty:3},
				{name:"cheddar cheese",cat:"dairy",cost:4.52,qty:6},
				{name:"sour cream",cat:"dairy",cost:.33,qty:2},
				{name:"orange",cat:"fruit",cost:.52,qty:4},
				{name:"donut",cat:"bakery",cost:.33,qty:2},
				{name:"yogurt",cat:"dairy",cost:.99,qty:5},
				{name:"milk",cat:"dairy",cost:2.99,qty:2},
				{name:"apple",cat:"fruit",cost:1.05,qty:4},
				{name:"colby cheese",cat:"dairy",cost:3.05,qty:4}];
	
			[Bindable]
			private var dp:ArrayCollection=new ArrayCollection(arrayData);
			
			//参数1:代表某列的数据
			//参数2:包括了sytleFunction属性对应的列的信息
			//返回值:null,表示不使用任何样式;
			//返回包含了若干样式属性及其对应值的Object
			//返回的样式将作用于AdvancedDataGrid的中,即字体颜色都被设为了红色
			public function myStyleFunction(data:Object,col:AdvancedDataGridColumn):Object {
				return {color:0xFF0000,fontWeight:"blod"};
			}
		]]>
	</fx:Script>

	<mx:AdvancedDataGrid dataProvider="{dp}"
		height="250"
		styleFunction="myStyleFunction"> <!-- 通过styleFunction属性指定对应函数,由函数返回样式规则-->
		<mx:columns>
			<mx:AdvancedDataGridColumn dataField="cat"/>
			<mx:AdvancedDataGridColumn dataField="name"/>
			<mx:AdvancedDataGridColumn dataField="cost"/>
		</mx:columns>
	</mx:AdvancedDataGrid>

</s:Application>


2.AdvancedDataGrid中对数据分组和增加摘要信息
通过标签完成:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx" >

	<s:layout>
		<s:VerticalLayout paddingTop="10"
						  horizontalAlign="center"/>
	</s:layout>

    <fx:Script>
        <![CDATA[
        	import mx.collections.ArrayCollection;
            
            private var arrayData:Array=[
                {name:"banana",cat:"fruit",cost:.99,qty:2},
                {name:"bread",cat:"bakery",cost:1.99,qty:3},
                {name:"cheddar cheese",cat:"dairy",cost:4.52,qty:6},
                {name:"sour cream",cat:"dairy",cost:.33,qty:2},
                {name:"orange",cat:"fruit",cost:.52,qty:4},
                {name:"donut",cat:"bakery",cost:.33,qty:2},
                {name:"yogurt",cat:"dairy",cost:.99,qty:5},
                {name:"milk",cat:"dairy",cost:2.99,qty:2},
                {name:"apple",cat:"fruit",cost:1.05,qty:4},
                {name:"colby cheese",cat:"dairy",cost:3.05,qty:4}];
    
            [Bindable]
            private var dp:ArrayCollection=new ArrayCollection(arrayData);
        ]]>
    </fx:Script>

    <mx:AdvancedDataGrid height="200"
						 creationComplete="myGroup.refresh()"> <!-- refresh被调用,程序就开始对数据进行分组,然后才能呈现-->
		<mx:dataProvider>
			<mx:GroupingCollection2 id="myGroup" source="{dp}">
				<mx:Grouping>
					<mx:GroupingField name="cat"/> <!--name属性指定了分组依据的字段,即按类别分组-->
				</mx:Grouping>
			</mx:GroupingCollection2>
		</mx:dataProvider>
		<mx:columns>
                  <mx:AdvancedDataGridColumn dataField="name"/>
                  <mx:AdvancedDataGridColumn dataField="cost"/>
                  <mx:AdvancedDataGridColumn dataField="qty"/>
            </mx:columns>
      </mx:AdvancedDataGrid>
 
 </s:Application>


<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx" >

	<s:layout>
		<s:VerticalLayout paddingTop="10"
						  horizontalAlign="center"/>
	</s:layout>

    <fx:Script>
        <![CDATA[
        	import mx.collections.ArrayCollection;
            
            private var arrayData:Array=[
                {name:"banana",cat:"fruit",cost:.99,qty:2},
                {name:"bread",cat:"bakery",cost:1.99,qty:3},
                {name:"cheddar cheese",cat:"dairy",cost:4.52,qty:6},
                {name:"sour cream",cat:"dairy",cost:.33,qty:2},
                {name:"orange",cat:"fruit",cost:.52,qty:4},
                {name:"donut",cat:"bakery",cost:.33,qty:2},
                {name:"yogurt",cat:"dairy",cost:.99,qty:5},
                {name:"milk",cat:"dairy",cost:2.99,qty:2},
                {name:"apple",cat:"fruit",cost:1.05,qty:4},
                {name:"colby cheese",cat:"dairy",cost:3.05,qty:4}];
    
            [Bindable]
            private var dp:ArrayCollection=new ArrayCollection(arrayData);
        ]]>
    </fx:Script>
	
	<!--设置AdvancedDataGrid的属性defaultLeafIcon="null" 可以移除物品签发的图标-->
	<mx:AdvancedDataGrid creationComplete="myGroup.refresh()"
		height="200" >
		<mx:dataProvider>
			<mx:GroupingCollection2 id="myGroup" source="{dp}">
				<mx:Grouping>
					<mx:GroupingField name="cat">
						<!-- 为各个分组创建摘要信息-->
						<mx:summaries>
							<mx:SummaryRow summaryPlacement="last">
								<mx:fields>
									<!--dataField计算摘要的数据字段 
									    summaryOperation定义了摘要数据如何计算:SUM MIN MAX AVG COUNT
									    label将摘要值关联到某个字段
									    -->
									<mx:SummaryField2 dataField="qty" summaryOperation="SUM" label="summary"/>
								</mx:fields>
							</mx:SummaryRow>
						</mx:summaries>
						
					</mx:GroupingField>
				</mx:Grouping>
			</mx:GroupingCollection2>
		</mx:dataProvider>
		<mx:columns>
              <mx:AdvancedDataGridColumn dataField="name"/>
              <mx:AdvancedDataGridColumn dataField="cost"/>
              <mx:AdvancedDataGridColumn dataField="qty"/>
        </mx:columns>
		
		<mx:rendererProviders>
			<!-- 本项目呈现器专用于summary字段
			     columnIndex属性使呈现器显示在索引为1的列中,列索引从0开始
			     columnSpan指定呈现器横跨几列
			     renderer指定呈现器的路径-->
			<mx:AdvancedDataGridRendererProvider dataField="summary" columnIndex="1" columnSpan="2" renderer="renderers.SummaryText"/>
		</mx:rendererProviders>
		
  </mx:AdvancedDataGrid>
 </s:Application>


SummaryText.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
								  xmlns:s="library://ns.adobe.com/flex/spark" 
								  xmlns:mx="library://ns.adobe.com/flex/mx" 
								  focusEnabled="true">
	<!-- data属性会包含表格中某一行的所有数据,Flex会自动将这些数据传递给组件-->
	<s:Label id="lblData" top="0" left="0" right="0" bottom="0" text="Total number of items:{data.summary}" />
</s:MXAdvancedDataGridItemRenderer>



通过ActionScript完成分组与添加摘要信息
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx" >

	<s:layout>
		<s:VerticalLayout paddingTop="10"
						  horizontalAlign="center"/>
	</s:layout>

    <fx:Script>
        <![CDATA[
			import mx.collections.ArrayCollection;
			import mx.collections.Grouping;
			import mx.collections.GroupingCollection2;
			import mx.collections.GroupingField;
			
			import spark.components.Group;

            private var arrayData:Array=[
                {name:"banana",cat:"fruit",cost:.99,qty:2},
                {name:"bread",cat:"bakery",cost:1.99,qty:3},
                {name:"cheddar cheese",cat:"dairy",cost:4.52,qty:6},
                {name:"sour cream",cat:"dairy",cost:.33,qty:2},
                {name:"orange",cat:"fruit",cost:.52,qty:4},
                {name:"donut",cat:"bakery",cost:.33,qty:2},
                {name:"yogurt",cat:"dairy",cost:.99,qty:5},
                {name:"milk",cat:"dairy",cost:2.99,qty:2},
                {name:"apple",cat:"fruit",cost:1.05,qty:4},
                {name:"colby cheese",cat:"dairy",cost:3.05,qty:4}];
    
            [Bindable]
            private var dp:ArrayCollection=new ArrayCollection(arrayData);
           
			private function initDG():void
			{
				 //创建分组集合对象
				 var myGroupColl:GroupingCollection2 = new GroupingCollection2();
				 //获取dataProvider
				 myGroupColl.source = myADG.dataProvider;
				 
				 //创建分组
				 var group:Grouping = new Grouping();
				 //分组字段
				 var gf:GroupingField = new GroupingField("cat");
				 //以数组格式赋值到分组对象的fields属性中
				 group.fields = [gf];
				 //将分组对象赋值到分组集合的grouping属性中
				 myGroupColl.grouping = group;
				 
				 //调用refresh方法,对数据进行分组
				 myGroupColl.refresh();
				 
				 //将数据重新放回AdvancedDataGrid中
				 myADG.dataProvider = myGroupColl;
			}
        ]]>
    </fx:Script>

	<mx:AdvancedDataGrid id="myADG" 
	    dataProvider="{dp}"
		creationComplete="initDG()">
	    <mx:columns>
	        <mx:AdvancedDataGridColumn dataField="name"/>
	        <mx:AdvancedDataGridColumn dataField="cost"/>
	        <mx:AdvancedDataGridColumn dataField="qty"/>
	    </mx:columns>
	</mx:AdvancedDataGrid>

</s:Application>


<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx" >

	<s:layout>
		<s:VerticalLayout paddingTop="10"
						  horizontalAlign="center"/>
	</s:layout>

    <fx:Script>
        <![CDATA[
			import mx.collections.ArrayCollection;
			import mx.collections.Grouping;
			import mx.collections.GroupingCollection2;
			import mx.collections.GroupingField;
			import mx.collections.SummaryField2;
			import mx.collections.SummaryRow;

            private var arrayData:Array=[
                {name:"banana",cat:"fruit",cost:.99,qty:2},
                {name:"bread",cat:"bakery",cost:1.99,qty:3},
                {name:"cheddar cheese",cat:"dairy",cost:4.52,qty:6},
                {name:"sour cream",cat:"dairy",cost:.33,qty:2},
                {name:"orange",cat:"fruit",cost:.52,qty:4},
                {name:"donut",cat:"bakery",cost:.33,qty:2},
                {name:"yogurt",cat:"dairy",cost:.99,qty:5},
                {name:"milk",cat:"dairy",cost:2.99,qty:2},
                {name:"apple",cat:"fruit",cost:1.05,qty:4},
                {name:"colby cheese",cat:"dairy",cost:3.05,qty:4}];
    
            [Bindable]
            private var dp:ArrayCollection=new ArrayCollection(arrayData);
           
			 private function initDG():void
			{
				var myGroupColl:GroupingCollection2=new GroupingCollection2();
				myGroupColl.source=myADG.dataProvider;
				var group:Grouping=new Grouping();
				var gf:GroupingField=new GroupingField("cat");
				group.fields=[gf];
				myGroupColl.grouping=group;

				
				//创建摘要信息(逐一将各对象的属性进行设置,然后赋值到相应的对象上)
				var sr:SummaryRow = new SummaryRow();
				
				var sf:SummaryField2 = new SummaryField2();
				sf.dataField = "qty";
				sf.summaryOperation = "SUM";
				sf.label = "summary";
				
				sr.fields = [sf];
				sr.summaryPlacement = "last";
				
				gf.summaries = [sr];
				
				//配置好摘要信息后才调用refresh
				myGroupColl.refresh();
				myADG.dataProvider=myGroupColl;
			}
        ]]>
    </fx:Script>

	<mx:AdvancedDataGrid id="myADG" 
	    dataProvider="{dp}"
	    creationComplete="initDG()">
	    <mx:columns>
	        <mx:AdvancedDataGridColumn dataField="name"/>
	        <mx:AdvancedDataGridColumn dataField="cost"/>
	        <mx:AdvancedDataGridColumn dataField="qty"/>
	    </mx:columns>
		<mx:rendererProviders>
		    <mx:AdvancedDataGridRendererProvider 
		        dataField="summary"
		        columnIndex="1"
		        columnSpan="2"
		        renderer="renderers.SummaryTextForAS"/>
		</mx:rendererProviders>
	</mx:AdvancedDataGrid>

</s:Application>

SummaryTextForAS.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
								  xmlns:s="library://ns.adobe.com/flex/spark" 
								  xmlns:mx="library://ns.adobe.com/flex/mx" 
								  focusEnabled="true">
	<s:Label id="lblData" top="0" left="0" right="0" bottom="0" text="Total number of items: {data.summary}" />
</s:MXAdvancedDataGridItemRenderer>
分享到:
评论

相关推荐

    AdvancedDataGrid综合应用

    《AdvancedDataGrid综合应用》 在Flex开发中,AdvancedDataGrid是一个强大的组件,它扩展了基本的DataGrid,提供了更复杂的数据展示和交互功能。这个主题涵盖了如何在Flex项目中有效地利用AdvancedDataGrid来实现...

    Flex应用AdvancedDataGrid表头皮肤

    在Flex开发中,AdvancedDataGrid组件是用于展示大量复杂数据的高级网格控件。它提供了比基本DataGrid更丰富的功能,如多级表头、排序、分组、过滤和自定义渲染等。本文将深入探讨Flex应用中的AdvancedDataGrid表头...

    最新的AdvancedDataGrid行嵌套AdvancedDataGrid实现

    最新的AdvancedDataGrid行嵌套AdvancedDataGrid实现,该例子只是实现AdvancedDataGrid利用AdvancedDataGridRendererProvider在行中渲染另外一个AdvancedDataGrid,当然也可以渲染其它任何想渲染的界面或者组件,价值...

    AdvancedDataGrid或datagrid导出到excel.rar

    AdvancedDataGrid或datagrid导出到excel.rar AdvancedDataGrid或datagrid导出到excel.rar AdvancedDataGrid或datagrid导出到excel.rar

    Flex技术中AdvancedDataGrid使用方法

    ### Flex技术中AdvancedDataGrid使用方法 #### 一、多列排序 在默认情况下,`AdvancedDataGrid`组件会按照数据被添加至其`DataProvider`的顺序来展示数据。与`DataGrid`组件类似,`AdvancedDataGrid`也支持用户在...

    felx AdvancedDataGrid 多选框 单选框

    非常好用的 felx AdvancedDataGrid 多选框 单选框支持渲染器,不需改到AdvancedDataGrid 代码; 支持 xml 数据源的网上可查到一些, 但这个可是 支持 Array 类型数据源的。

    AdvancedDataGrid 动态添加节点 控制树

    在Flex开发中,AdvancedDataGrid是一个强大的组件,用于展示大量数据并进行复杂的数据操作,如分组、排序和过滤。这个组件特别适用于构建数据密集型的用户界面,尤其是在需要显示层次结构数据时。本篇文章将深入探讨...

    flex-datagrid-advancedDataGrid-demo

    在Flex编程领域,数据网格(DataGrid)是用于展示大量结构化数据的组件,而AdvancedDataGrid则是DataGrid的一个增强版,提供了更为丰富的功能和更高级的定制能力。本示例"flex-datagrid-advancedDataGrid-demo"显然...

    表格演示(1)AdvancedDataGrid应用

    《表格演示(1)AdvancedDataGrid应用》这篇文章主要探讨了在IT行业中,特别是在数据可视化领域,如何有效地利用AdvancedDataGrid组件来提升用户界面的交互性和数据展示的效果。AdvancedDataGrid是Flex框架中一个...

    AdvancedDataGrid动态加载.rar

    在Flex 3中,AdvancedDataGrid控件是一个强大的数据展示组件,特别适合处理大量数据集。这个"AdvancedDataGrid动态加载.rar"压缩包文件显然包含了能够直接运行的代码示例,用于演示如何实现AdvancedDataGrid的动态...

    advancedDataGrid单击逐级展开的例子

    在本文中,我们将深入探讨`advancedDataGrid`的逐级展开功能,这是一个在Flex或Adobe AIR应用程序中广泛使用的高级数据网格组件。`advancedDataGrid`提供了丰富的数据展示和交互能力,特别适合处理多层次的数据结构...

    FLEX AdvancedDataGrid 复选框

    在IT行业中,AdvancedDataGrid是Flex(Adobe Flex)框架中一个强大的数据网格组件,用于显示大量结构化的数据。它提供了高级的数据呈现功能,比如分组、排序、过滤和自定义渲染。本文将深入探讨“FLEX ...

    DataGrid和AdvancedDataGrid CheckBox全选功能1.1

    在本文中,我们将深入探讨如何在Flex中实现DataGrid和AdvancedDataGrid组件的CheckBox全选功能。这个功能在数据展示和交互式操作中非常常见,它允许用户通过一个主CheckBox来选择或取消选择所有行数据。 首先,我们...

    AdvancedDataGrid datavisualization.swc

    flex datavisualization.swc flex 3 AdvancedDataGrid

    flex 使用AdvancedDataGrid组件的课件管理系统

    在Flex开发环境中,AdvancedDataGrid组件是一个强大的数据展示工具,尤其适用于处理大量复杂数据的网格显示。本课件管理系统就是基于这个组件构建的,旨在提供一个基础的平台,用于管理和浏览课件信息。下面将详细...

    flex AdvancedDataGrid实现checkBox全选功能

    在Flex开发中,AdvancedDataGrid是一款强大的数据网格组件,它提供了丰富的数据展示和交互功能,如排序、分组、过滤等。在实际应用中,我们经常需要为用户提供选择多条数据的能力,这时CheckBox的选择功能就显得尤为...

    DataGrid和AdvancedDataGrid CheckBox全选功能

    在本文中,我们将深入探讨两种在Flex或Adobe AIR应用程序中常用的组件——`DataGrid`和`AdvancedDataGrid`,特别是关于它们的CheckBox全选功能。`DataGrid`和`AdvancedDataGrid`是Flex中用于展示数据集合的强大工具...

    SparkTree_AdvancedDataGrid

    《SparkTree_AdvancedDataGrid——深入理解Flex中的高级数据网格》 SparkTree_AdvancedDataGrid是基于Adobe Flex SDK 4.5的一个高级组件,它在Flex应用中提供了强大的树形数据展示功能。Flex是一个用于创建富互联网...

    flex advancedDataGrid 中如何实现带checkbox的树

    在Flex开发中,AdvancedDataGrid组件是一个功能强大的数据网格,它可以显示层次结构的数据,并提供了丰富的定制选项。在一些应用场景中,我们可能需要在AdvancedDataGrid中实现带有复选框的树形结构,以便用户可以...

Global site tag (gtag.js) - Google Analytics