论坛首页 编程语言技术论坛

flex AdvancedDataGrid 表格

浏览 3741 次
该帖已经被评为隐藏帖
作者 正文
   发表时间:2008-09-24  
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	<mx:Array id="person">
		
		<mx:Object name="nic" sex="men" neigong="95" bingqi="80" email="nivcherl@126.com"/>
		<mx:Object name="nic" sex="men" neigong="95" bingqi="80" email="nivcherl@126.com"/>	
	<mx:Object name="nic" sex="men" neigong="95" bingqi="80" email="nivcherl@126.com"/>
		<mx:Object name="nic" sex="men" neigong="95" bingqi="80" email="nivcherl@126.com"/>
	</mx:Array>
	
	<mx:AdvancedDataGrid dataProvider="{person}" editable="true" variableRowHeight="true" >
		<mx:groupedColumns>
			<mx:AdvancedDataGridColumn headerText="姓名" dataField="name" editable="false"/>
			<mx:AdvancedDataGridColumn headerText="性别" dataField="sex" editable="true" editorDataField="text">
			<mx:itemEditor>
				<mx:Component>
					<mx:ComboBox>
						<mx:dataProvider>	
							<mx:ArrayCollection>
							<mx:String>男</mx:String>
							<mx:String>女</mx:String>
							</mx:ArrayCollection>
						</mx:dataProvider>
					</mx:ComboBox>
				</mx:Component>
			</mx:itemEditor>
			</mx:AdvancedDataGridColumn>
			<mx:AdvancedDataGridColumnGroup headerText="ary">
				
			
			<mx:AdvancedDataGridColumn headerText="内功" dataField="neigong" editable="true">
			
			</mx:AdvancedDataGridColumn>
			<mx:AdvancedDataGridColumn headerText="招数" dataField="bingqi" editable="true" editorDataField="value">

	<mx:itemEditor>
		<mx:Component>
			<mx:NumericStepper stepSize="1" maximum="100"/>
			
		</mx:Component>
		
	</mx:itemEditor>

			</mx:AdvancedDataGridColumn>
			
			</mx:AdvancedDataGridColumnGroup>
			<mx:AdvancedDataGridColumn headerText="email" dataField="email" editable="false"/>
		</mx:groupedColumns>
	</mx:AdvancedDataGrid>
	
</mx:Application>

 
本人正学习flex不知如何修改完数据后用触发哪个方法

 

论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics