主頁 > 知識庫 > Flex中AdvancedDataGrid的用法示例介紹

Flex中AdvancedDataGrid的用法示例介紹

熱門標(biāo)簽:無錫電銷外呼系統(tǒng)代理 外呼系統(tǒng)號碼顯示 車載電話機(jī)器人 天津企業(yè)外呼系統(tǒng)代理商 南昌crm外呼系統(tǒng)如何 中山外呼系統(tǒng)中間件 地圖標(biāo)注多家店 什么行業(yè)需要電話機(jī)器人 廣州ai外呼系統(tǒng)業(yè)務(wù)
AdvancedDataGrid實(shí)現(xiàn)雙表頭表格

(1)源碼

AdvanceGrid.mxml
復(fù)制代碼 代碼如下:

?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"
width="100%" height="100%">
s:layout>
s:HorizontalLayout verticalAlign="middle" horizontalAlign="center"/>
/s:layout>
fx:Declarations>

/fx:Declarations>

fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
.adv{
font-size:12;
font-weight:bold;
color:FFFFFF;
}
/fx:Style>

fx:Script>
![CDATA[
import mx.collections.ArrayCollection;

[Bindable]
private var flatArray:ArrayCollection = new ArrayCollection([
{school:"星藝高中",one:"5645",two:"4512",three:"4545",man:"8656",woman:"6545",Chinese:"98",Maths:"78",English:"98"},
{school:"充實(shí)高中",one:"5665",two:"4512",three:"6563",man:"8565",woman:"6541",Chinese:"67",Maths:"86",English:"65"},
{school:"理論一中",one:"6545",two:"6562",three:"5623",man:"8754",woman:"6214",Chinese:"87",Maths:"78",English:"86"},
{school:"護(hù)名高中",one:"5623",two:"2356",three:"4512",man:"8574",woman:"6354",Chinese:"98",Maths:"84",English:"69"},
{school:"竹藝高中",one:"4545",two:"7545",three:"5623",man:"8547",woman:"6352",Chinese:"94",Maths:"80",English:"87"},
{school:"精髓高中",one:"6565",two:"4512",three:"4512",man:"8354",woman:"6854",Chinese:"90",Maths:"68",English:"97"}
]);
]]>
/fx:Script>

mx:VBox width="100%" height="100%" paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10">
mx:AdvancedDataGrid id="adg" dataProvider="{flatArray}" designViewDataType="flat" width="100%" height="100%"
paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10" verticalAlign="middle"
textAlign="center" headerSeparatorSkin="mx.skins.ProgrammaticSkin" headerColors="[0xB0C4DE,0xB0C4DE]"
headerStyleName="adv">
mx:groupedColumns>
mx:AdvancedDataGridColumn headerText="學(xué)校" dataField="school"/>
mx:AdvancedDataGridColumnGroup headerText="班級">
mx:AdvancedDataGridColumn headerText="高一" dataField="one"/>
mx:AdvancedDataGridColumn headerText="高二" dataField="two"/>
mx:AdvancedDataGridColumn headerText="高三" dataField="three"/>
/mx:AdvancedDataGridColumnGroup>
mx:AdvancedDataGridColumnGroup headerText="性別">
mx:AdvancedDataGridColumn headerText="男" dataField="man"/>
mx:AdvancedDataGridColumn headerText="女" dataField="woman"/>
/mx:AdvancedDataGridColumnGroup>
mx:AdvancedDataGridColumnGroup headerText="課程">
mx:AdvancedDataGridColumn headerText="語文" dataField="Chinese"/>
mx:AdvancedDataGridColumn headerText="數(shù)學(xué)" dataField="Maths"/>
mx:AdvancedDataGridColumn headerText="英語" dataField="English"/>
/mx:AdvancedDataGridColumnGroup>
/mx:groupedColumns>
/mx:AdvancedDataGrid>
/mx:VBox>

/s:Application>

(2)顯示結(jié)果

標(biāo)簽:海西 泰州 呂梁 仙桃 滄州 佛山 欽州 攀枝花

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Flex中AdvancedDataGrid的用法示例介紹》,本文關(guān)鍵詞  Flex,中,AdvancedDataGrid,的,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Flex中AdvancedDataGrid的用法示例介紹》相關(guān)的同類信息!
  • 本頁收集關(guān)于Flex中AdvancedDataGrid的用法示例介紹的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章