flex Grid 自定义操作列

 <mx:DataGridColumn dataField="SEND_NUM" headerText="送修单号">
	<mx:itemRenderer>
		<fx:Component>
			<mx:LinkButton label="{data.SEND_NUM}" click="detail_clickHandler(event)">
				<fx:Script>
					<![CDATA[
						import com.neusoft.OAPM.Pro.destination.ProDestination;
						import com.adobe.cairngorm.navigation.NavigationEvent;
													
						protected function detail_clickHandler(event:MouseEvent):void
						{
														
								outerDocument.dispatcher(NavigationEvent.createNavigateToEvent(ProDestination.ENROLLMENT_DETAILVIEW));
								outerDocument.model.executeId = String(data.EXECUTIONID);
								mx.controls.Alert.show(outerDocument.model.executeId);
						}
													
					]]>
				</fx:Script>
			</mx:LinkButton>
		</fx:Component>
	</mx:itemRenderer>
</mx:DataGridColumn>
 

你可能感兴趣的:(Flex)