主頁 > 知識(shí)庫 > Flex DataGrid 偽合并單元格實(shí)現(xiàn)思路

Flex DataGrid 偽合并單元格實(shí)現(xiàn)思路

熱門標(biāo)簽:智能手機(jī) 呼叫中心市場需求 服務(wù)器配置 美圖手機(jī) 網(wǎng)站文章發(fā)布 鐵路電話系統(tǒng) 銀行業(yè)務(wù) 檢查注冊(cè)表項(xiàng)
?xml version="1.0" encoding="utf-8"?> 
s:MXDataGridItemRenderer 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%" 
          
         autoDrawBackground="false" 
         creationComplete="mxitemrenderer1_creationCompleteHandler(event)" 
        > 
  s:layout> 
    s:VerticalLayout verticalAlign="middle" horizontalAlign="center"/> 
  /s:layout> 
  fx:Script> 
    ![CDATA[ 
      import mx.collections.ArrayCollection; 
      import mx.controls.Text; 
      import mx.events.FlexEvent; 
       
      protected function mxitemrenderer1_creationCompleteHandler(event:FlexEvent):void 
      { 
        var txt1:String = lbl.text.split(",")[0]; 
        var txt2:String = lbl.text.split(",")[1]; 
        lbl1.text = txt1; 
        lbl2.text = txt2; 
     
      } 
       
    ]]> 
  /fx:Script> 
  fx:Declarations> 
    !-- 將非可視元素(例如服務(wù)、值對(duì)象)放在此處 --> 
  /fx:Declarations> 
  s:Label id="lbl" text="{dataGridListData.label}" visible="false" height="0"/> 
   
  s:VGroup  id="vp" width="100%" height="100%" gap="2" > 
  s:Label  id="lbl1" color="0x000000" textAlign="center" verticalAlign="middle" width="100%"/> 
  mx:HRule width="100%" chromeColor="0x999999" alpha="0.3"/> 
  s:Label  id="lbl2" color="0x000000" textAlign="center" verticalAlign="middle" width="100%"/> 
  /s:VGroup> 
  /s:MXDataGridItemRenderer>
您可能感興趣的文章:
  • Flex 獲取每月第幾周小例子
  • Flex 遍歷Object鍵和值的示例代碼
  • Flex 自定義DataGrid實(shí)現(xiàn)根據(jù)條目某一屬性值改變背景顏色
  • Flex4 DataGrid中嵌入RadioButton實(shí)現(xiàn)思路及代碼
  • flex 遍歷Object對(duì)象內(nèi)容的實(shí)現(xiàn)代碼
  • 全面了解flex的用途

標(biāo)簽:長治 滄州 紅河 新疆 沈陽 河南 樂山 上海

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Flex DataGrid 偽合并單元格實(shí)現(xiàn)思路》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266